Mercurial > libervia-backend
comparison setup.py @ 233:6a37bc1b0b8c
distutils: fixed custom wokkel building
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Jan 2011 19:16:50 +0100 |
parents | 0cd5b3c4513f |
children | 7a2ef5fe4e8d |
comparison
equal
deleted
inserted
replaced
232:0cd5b3c4513f | 233:6a37bc1b0b8c |
---|---|
71 '/usr/bin/hg pull -f http://hg.ik.nu/ralphm/wokkel-muc-client-support-24-2', | 71 '/usr/bin/hg pull -f http://hg.ik.nu/ralphm/wokkel-muc-client-support-24-2', |
72 '/usr/bin/hg merge wokkel-muc-client-support-24', | 72 '/usr/bin/hg merge wokkel-muc-client-support-24', |
73 '/usr/bin/hg commit -m "Merged wokkel\'s MUC branch"', | 73 '/usr/bin/hg commit -m "Merged wokkel\'s MUC branch"', |
74 '%s setup.py install' % sys.executable] | 74 '%s setup.py install' % sys.executable] |
75 for command in commands: | 75 for command in commands: |
76 ret = subprocess.call(command, shell=True) | 76 if command.startswith('cd '): |
77 if ret!=0: | 77 os.chdir(command[3:]) |
78 os.chdir(ori_path) | 78 else: |
79 print ("ERROR while building/installing custom wokkel") | 79 ret = subprocess.call(command, stdout=open('/dev/null', 'w'), shell=True) |
80 print ('Error happened when executing [%s]' % command) | 80 if ret!=0: |
81 raise MercurialException | 81 os.chdir(ori_path) |
82 print ("ERROR while building/installing custom wokkel") | |
83 print ('Error happened when executing [%s]' % command) | |
84 print ('tmpdir is [%s]' % work_path) | |
85 raise MercurialException | |
82 os.chdir(ori_path) | 86 os.chdir(ori_path) |
83 print "Custom wokkel builded and installed, removing temporary files" | 87 print "Custom wokkel builded and installed, removing temporary files" |
84 import shutil | 88 import shutil |
85 shutil.rmtree(work_path) | 89 shutil.rmtree(work_path) |
86 print "done" | 90 print "done" |