Mercurial > libervia-backend
comparison setup.py @ 294:9821e3dde550
installation: wokkel hack now use specific revision to avoid merge conflict, and use the same options as for the parent setup.py
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 18 Feb 2011 22:01:33 +0100 |
parents | 42438e43104a |
children | 5e00f8123001 |
comparison
equal
deleted
inserted
replaced
293:42438e43104a | 294:9821e3dde550 |
---|---|
85 ori_path = os.getcwd() | 85 ori_path = os.getcwd() |
86 work_path = tempfile.mkdtemp() | 86 work_path = tempfile.mkdtemp() |
87 os.chdir(work_path) | 87 os.chdir(work_path) |
88 hg_path = subprocess.Popen('which hg', stdout=subprocess.PIPE, shell=True).communicate()[0][:-1] | 88 hg_path = subprocess.Popen('which hg', stdout=subprocess.PIPE, shell=True).communicate()[0][:-1] |
89 #we are now in a temp dir, we can get the repositories | 89 #we are now in a temp dir, we can get the repositories |
90 commands = ['%s clone http://hg.ik.nu/wokkel wokkel' % hg_path, | 90 commands = ['%s clone http://hg.ik.nu/wokkel -r f9cd8ca1a62d' % hg_path, #XXX: we use specific revision to avoid merge conflict |
91 'cd wokkel', | 91 'cd wokkel', |
92 '%s pull -f http://hg.ik.nu/ralphm/wokkel-muc-client-support-24-2' % hg_path, | 92 '%s pull -f http://hg.ik.nu/ralphm/wokkel-muc-client-support-24-2 -r 1b19c49d30c2' % hg_path, |
93 '%s merge wokkel-muc-client-support-24' % hg_path, | 93 '%s merge wokkel-muc-client-support-24' % hg_path, |
94 '%s commit -u "SàT installation script" -m "Merged wokkel\'s MUC branch"' % hg_path, | 94 '%s commit -u "SàT installation script" -m "Merged wokkel\'s MUC branch"' % hg_path, |
95 '%s setup.py install' % sys.executable] | 95 '%s setup.py %s' % (sys.executable, sys.argv[1:])] #XXX: we use the same arguments as for this setup.py |
96 for command in commands: | 96 for command in commands: |
97 if command.startswith('cd '): | 97 if command.startswith('cd '): |
98 os.chdir(command[3:]) | 98 os.chdir(command[3:]) |
99 else: | 99 else: |
100 ret = subprocess.call(command, stdout=open('/dev/null', 'w'), shell=True) | 100 ret = subprocess.call(command, stdout=open('/dev/null', 'w'), shell=True) |