Mercurial > hg > autobot
annotate setup.py @ 234:44ca3474d03d
update to allow source
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 22 Dec 2011 13:24:02 -0800 |
parents | 7789fe9f8c30 |
children | 08610b14a2c1 |
rev | line source |
---|---|
98
9ba5c3df5e30
automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents:
91
diff
changeset
|
1 import os, sys |
0
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 from setuptools import setup, find_packages |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
3 |
191
7789fe9f8c30
WIP to download some version of Firefox, let alone a good one
Jeff Hammel <jhammel@mozilla.com>
parents:
159
diff
changeset
|
4 version = '0.1' |
0
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
5 |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
6 setup(name='autobot', |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
7 version=version, |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
8 description="buildbot incarnation for Mozilla AutoTools team", |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
9 long_description="""\ |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
10 """, |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
11 classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 keywords='buildbot automation', |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
13 author='Jeff Hammel', |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
14 author_email='jhammel@mozilla.com', |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
15 url='https://wiki.mozilla.org/Auto-tools', |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
16 license='MPL', |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
17 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
18 include_package_data=True, |
126
a9ac38655f75
fight with package_data, as usual
Jeff Hammel <jhammel@mozilla.com>
parents:
125
diff
changeset
|
19 package_data={'': ['template/master/*', |
a9ac38655f75
fight with package_data, as usual
Jeff Hammel <jhammel@mozilla.com>
parents:
125
diff
changeset
|
20 'template/slave/*', |
127 | 21 'template/*.*']}, |
0
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
22 zip_safe=False, |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
23 install_requires=[ |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
24 # -*- Extra requirements: -*- |
191
7789fe9f8c30
WIP to download some version of Firefox, let alone a good one
Jeff Hammel <jhammel@mozilla.com>
parents:
159
diff
changeset
|
25 'buildbot>=0.8.3p1', |
7789fe9f8c30
WIP to download some version of Firefox, let alone a good one
Jeff Hammel <jhammel@mozilla.com>
parents:
159
diff
changeset
|
26 'buildbot-slave', |
7789fe9f8c30
WIP to download some version of Firefox, let alone a good one
Jeff Hammel <jhammel@mozilla.com>
parents:
159
diff
changeset
|
27 'virtualenv', |
7789fe9f8c30
WIP to download some version of Firefox, let alone a good one
Jeff Hammel <jhammel@mozilla.com>
parents:
159
diff
changeset
|
28 'MakeItSo', |
7789fe9f8c30
WIP to download some version of Firefox, let alone a good one
Jeff Hammel <jhammel@mozilla.com>
parents:
159
diff
changeset
|
29 'GetLatestTinderbox' |
0
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
30 ], |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
31 entry_points=""" |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
32 # -*- Entry points: -*- |
15 | 33 [console_scripts] |
23
a32a7055f3e6
combine variables for buildbot master+slave
Jeff Hammel <jhammel@mozilla.com>
parents:
20
diff
changeset
|
34 create-autobot = autobot.template:create_autobot |
20
30ec24255ce9
stub out having a slave template too
Jeff Hammel <jhammel@mozilla.com>
parents:
15
diff
changeset
|
35 create-autobot-master = autobot.template:create_master |
30ec24255ce9
stub out having a slave template too
Jeff Hammel <jhammel@mozilla.com>
parents:
15
diff
changeset
|
36 create-autobot-slave = autobot.template:create_slave |
67
e8dabfd24c42
stub for a template to create new autobot factories; unfinished
Jeff Hammel <jhammel@mozilla.com>
parents:
23
diff
changeset
|
37 create-autobot-project = autobot.template:create_project |
0
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
38 """, |
8e14b6322cc7
initial stub for ateam buildbot
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
39 ) |
98
9ba5c3df5e30
automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents:
91
diff
changeset
|
40 |
125
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
41 # def install_hg(sources): |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
42 # """ |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
43 # - sources : dict of hg sources to install: {'package': 'http://hg...'} |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
44 # """ |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
45 # try: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
46 # from subprocess import check_call as call |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
47 # except: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
48 # from subprocess import call |
98
9ba5c3df5e30
automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents:
91
diff
changeset
|
49 |
125
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
50 # # see if you can find site-packages |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
51 # import site |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
52 # site_dir = os.path.abspath(os.path.dirname(site.__file__)) |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
53 # site_packages = os.path.join(site_dir, 'site-packages') |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
54 # if not (os.path.exists(site_packages) and os.path.isdir(site_packages)): |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
55 # raise IOError("Cannot find site-packages directory") |
98
9ba5c3df5e30
automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents:
91
diff
changeset
|
56 |
125
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
57 # # figure out what you need to install |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
58 # missing = set() |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
59 # for source in sources: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
60 # try: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
61 # __import__(source) |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
62 # except ImportError: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
63 # missing.add(source) |
98
9ba5c3df5e30
automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents:
91
diff
changeset
|
64 |
125
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
65 # # install it |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
66 # for source in missing: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
67 # call(['hg', 'clone', sources[source], |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
68 # os.path.join(site_packages, source)]) |
98
9ba5c3df5e30
automagically install buildbotcustom
Jeff Hammel <jhammel@mozilla.com>
parents:
91
diff
changeset
|
69 |
125
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
70 # ### install unpackaged dependencies |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
71 # source = {'buildbotcustom': 'http://hg.mozilla.org/build/buildbotcustom'} |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
72 # if set(['install', 'develop']).intersection(sys.argv[1:]): |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
73 # try: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
74 # install_hg(source) |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
75 # except: |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
76 # print 'Please make sure the source is installed:' |
3b3c83f803b3
no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future
Jeff Hammel <jhammel@mozilla.com>
parents:
98
diff
changeset
|
77 # print source |