Mercurial > hg > config
changeset 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 | 08f45070c136 |
children | 8cf361926883 |
files | python/install_config.py |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
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')