Mercurial > hg > config
diff python/install_config.py @ 41:eda848575afb
chdir to the directory before running python setup.py develop as this seems to be necessary
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 26 Mar 2010 08:07:12 -0700 |
parents | d83f35b9b799 |
children | 8cf361926883 |
line wrap: on
line diff
--- a/python/install_config.py Wed Mar 24 20:40:22 2010 -0700 +++ b/python/install_config.py Fri Mar 26 08:07:12 2010 -0700 @@ -38,12 +38,17 @@ def install_develop(package): src = 'http://k0s.org/hg/%s' % package + directory = '%s/src/%s' % (package, package) commands = [ ['virtualenv/virtualenv.py', package], - ['mkdir', '%s/src' % package], - ['hg', 'clone', src, '%s/src/%s' % (package, package)], - ['%s/bin/python' % package, '%s/src/%s/setup.py' % (package, package), 'develop'] ] + ['mkdir', directory ], + ['hg', 'clone', src, '%s/src/%s' % (package, package)] ] execute(*commands) - + old_directory = os.getcwd() + os.chdir(directory) + command = ['../../bin/python', 'setup.py', 'develop'] + execute(command) + os.chdir(old_directory) + # install some python install_develop('smartopen')