Mercurial > hg > config
comparison python/install_config.py @ 44:fc4b830a61e8
* make all subdirectories
* resuse variable
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 26 Mar 2010 14:00:35 -0700 |
parents | ff7f771a9baf |
children | 3d0ec6eb83fb |
comparison
equal
deleted
inserted
replaced
43:ff7f771a9baf | 44:fc4b830a61e8 |
---|---|
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) |