installation: fixed wokkel hack

This commit is contained in:
Goffi 2011-02-18 22:10:38 +01:00
commit cefdd5aab4

View file

@ -81,6 +81,7 @@ class custom_install(install):
"""Test if the custom wokkel is present, else get and build it"""
if not module_installed('wokkel.muc'):
sys.stdout.write ('Custom wokkel is not present, building it\n')
sys.stdout.flush()
import tempfile
ori_path = os.getcwd()
work_path = tempfile.mkdtemp()
@ -92,7 +93,7 @@ class custom_install(install):
'%s pull -f http://hg.ik.nu/ralphm/wokkel-muc-client-support-24-2 -r 1b19c49d30c2' % hg_path,
'%s merge wokkel-muc-client-support-24' % hg_path,
'%s commit -u "SàT installation script" -m "Merged wokkel\'s MUC branch"' % hg_path,
'%s setup.py %s' % (sys.executable, sys.argv[1:])] #XXX: we use the same arguments as for this setup.py
'%s setup.py %s' % (sys.executable, ' '.join(sys.argv[1:]))] #XXX: we use the same arguments as for this setup.py
for command in commands:
if command.startswith('cd '):
os.chdir(command[3:])