# HG changeset patch # User Jeff Hammel # Date 1295807791 28800 # Node ID 3b3c83f803b3d39f930e78df24a1a3bb328dff4a # Parent f2f4bf7edbbc0de30290d4476c56798c8b57c0db no longer need to install buildbotcustom, for now; commenting out as it may be desired in the future diff -r f2f4bf7edbbc -r 3b3c83f803b3 setup.py --- a/setup.py Sat Jan 22 18:31:25 2011 -0800 +++ b/setup.py Sun Jan 23 10:36:31 2011 -0800 @@ -34,40 +34,40 @@ """, ) -def install_hg(sources): - """ - - sources : dict of hg sources to install: {'package': 'http://hg...'} - """ - try: - from subprocess import check_call as call - except: - from subprocess import call +# def install_hg(sources): +# """ +# - sources : dict of hg sources to install: {'package': 'http://hg...'} +# """ +# try: +# from subprocess import check_call as call +# except: +# from subprocess import call - # see if you can find site-packages - import site - site_dir = os.path.abspath(os.path.dirname(site.__file__)) - site_packages = os.path.join(site_dir, 'site-packages') - if not (os.path.exists(site_packages) and os.path.isdir(site_packages)): - raise IOError("Cannot find site-packages directory") +# # see if you can find site-packages +# import site +# site_dir = os.path.abspath(os.path.dirname(site.__file__)) +# site_packages = os.path.join(site_dir, 'site-packages') +# if not (os.path.exists(site_packages) and os.path.isdir(site_packages)): +# raise IOError("Cannot find site-packages directory") - # figure out what you need to install - missing = set() - for source in sources: - try: - __import__(source) - except ImportError: - missing.add(source) +# # figure out what you need to install +# missing = set() +# for source in sources: +# try: +# __import__(source) +# except ImportError: +# missing.add(source) - # install it - for source in missing: - call(['hg', 'clone', sources[source], - os.path.join(site_packages, source)]) +# # install it +# for source in missing: +# call(['hg', 'clone', sources[source], +# os.path.join(site_packages, source)]) -### install unpackaged dependencies -source = {'buildbotcustom': 'http://hg.mozilla.org/build/buildbotcustom'} -if set(['install', 'develop']).intersection(sys.argv[1:]): - try: - install_hg(source) - except: - print 'Please make sure the source is installed:' - print source +# ### install unpackaged dependencies +# source = {'buildbotcustom': 'http://hg.mozilla.org/build/buildbotcustom'} +# if set(['install', 'develop']).intersection(sys.argv[1:]): +# try: +# install_hg(source) +# except: +# print 'Please make sure the source is installed:' +# print source