Mercurial > hg > config
comparison python/install_config.py @ 46:3d0ec6eb83fb
merge
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 27 Mar 2010 09:50:43 -0700 |
parents | 069a739d88ad fc4b830a61e8 |
children | abe2508386ac |
comparison
equal
deleted
inserted
replaced
45:069a739d88ad | 46:3d0ec6eb83fb |
---|---|
36 | 36 |
37 def install_develop(package): | 37 def install_develop(package): |
38 src = 'http://k0s.org/hg/%s' % package | 38 src = 'http://k0s.org/hg/%s' % package |
39 directory = '%s/src/%s' % (package, package) | 39 directory = '%s/src/%s' % (package, package) |
40 commands = [ ['virtualenv/virtualenv.py', package], | 40 commands = [ ['virtualenv/virtualenv.py', package], |
41 ['mkdir', directory ], | 41 ['mkdir', '-p', directory ], |
42 ['hg', 'clone', src, '%s/src/%s' % (package, package)] ] | 42 ['hg', 'clone', src, directory] ] |
43 execute(*commands) | 43 execute(*commands) |
44 old_directory = os.getcwd() | 44 old_directory = os.getcwd() |
45 os.chdir(directory) | 45 os.chdir(directory) |
46 command = ['../../bin/python', 'setup.py', 'develop'] | 46 command = ['../../bin/python', 'setup.py', 'develop'] |
47 execute(command) | 47 execute(command) |