Mercurial > hg > config
comparison python/install_config.py @ 592:33b313fa1eb0
STUB: python/install_config.py
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Sat, 25 Jan 2014 10:19:35 -0800 |
| parents | 542d329835ec |
| children | dbdc68d85986 |
comparison
equal
deleted
inserted
replaced
| 591:542d329835ec | 592:33b313fa1eb0 |
|---|---|
| 38 for command in commands: | 38 for command in commands: |
| 39 print (subprocess.list2cmdline(' '.join(command))) | 39 print (subprocess.list2cmdline(' '.join(command))) |
| 40 code = subprocess.call(command, **kwargs) | 40 code = subprocess.call(command, **kwargs) |
| 41 if code: | 41 if code: |
| 42 raise subprocess.CalledProcessError(code, command) | 42 raise subprocess.CalledProcessError(code, command) |
| 43 | |
| 43 | 44 |
| 44 def install_develop(package): | 45 def install_develop(package): |
| 45 """install k0s.ware for development""" | 46 """install k0s.ware for development""" |
| 46 | 47 |
| 47 src = 'http://k0s.org/hg/%s' % package | 48 src = 'http://k0s.org/hg/%s' % package |
| 56 execute(command) | 57 execute(command) |
| 57 os.chdir(old_directory) | 58 os.chdir(old_directory) |
| 58 | 59 |
| 59 | 60 |
| 60 ### generic step framework | 61 ### generic step framework |
| 62 | |
| 63 class StepGraph(object): | |
| 64 """a bunch of steps""" | |
| 61 | 65 |
| 62 class Step(object): | 66 class Step(object): |
| 63 @classmethod | 67 @classmethod |
| 64 def check(cls): | 68 def check(cls): |
| 65 """checks if the step may be run""" | 69 """checks if the step may be run""" |
