Mercurial > hg > config
comparison 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 |
comparison
equal
deleted
inserted
replaced
40:08f45070c136 | 41:eda848575afb |
---|---|
36 | 36 |
37 execute(*commands) | 37 execute(*commands) |
38 | 38 |
39 def install_develop(package): | 39 def install_develop(package): |
40 src = 'http://k0s.org/hg/%s' % package | 40 src = 'http://k0s.org/hg/%s' % package |
41 directory = '%s/src/%s' % (package, package) | |
41 commands = [ ['virtualenv/virtualenv.py', package], | 42 commands = [ ['virtualenv/virtualenv.py', package], |
42 ['mkdir', '%s/src' % package], | 43 ['mkdir', directory ], |
43 ['hg', 'clone', src, '%s/src/%s' % (package, package)], | 44 ['hg', 'clone', src, '%s/src/%s' % (package, package)] ] |
44 ['%s/bin/python' % package, '%s/src/%s/setup.py' % (package, package), 'develop'] ] | |
45 execute(*commands) | 45 execute(*commands) |
46 | 46 old_directory = os.getcwd() |
47 os.chdir(directory) | |
48 command = ['../../bin/python', 'setup.py', 'develop'] | |
49 execute(command) | |
50 os.chdir(old_directory) | |
51 | |
47 # install some python | 52 # install some python |
48 install_develop('smartopen') | 53 install_develop('smartopen') |
49 | 54 |
50 postinstall_commands = [ ['ln', '-s', os.path.join(HOME, 'smartopen', 'bin', 'smartopen'), os.path.join(HOME, 'bin', 'smartopen') ] ] | 55 postinstall_commands = [ ['ln', '-s', os.path.join(HOME, 'smartopen', 'bin', 'smartopen'), os.path.join(HOME, 'bin', 'smartopen') ] ] |
51 | 56 |