# HG changeset patch # User Jeff Hammel # Date 1324592465 28800 # Node ID 5473f12615479031fb308e92e955935a0bf6bf77 # Parent 08610b14a2c1fcd0e0730ba3edfb2a4fff9cbbca remove obselescent comment diff -r 08610b14a2c1 -r 5473f1261547 setup.py --- a/setup.py Thu Dec 22 14:20:08 2011 -0800 +++ b/setup.py Thu Dec 22 14:21:05 2011 -0800 @@ -37,41 +37,3 @@ create-autobot-project = autobot.template:create_project """, ) - -# 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") - -# # 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 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