fixes for make_packages

This commit is contained in:
ThomasV 2015-02-21 12:49:35 +01:00
parent 91ea2d8752
commit 9874afac8b
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,8 @@ if __name__ == '__main__':
'dns',
'six',
]
# don't use /usr/lib
sys.path = ['/usr/local/lib/python2.7/dist-packages']
for module in deps:
f, pathname, descr = imp.find_module(module)
target = 'packages/' + module + descr[0]
@ -39,6 +41,11 @@ if __name__ == '__main__':
print command
os.system(command)
# fix google/__init__.py needed by pyinstaller
n = 'packages/google/__init__.py'
if not os.path.exists(n):
os.system("echo blah>%s"%n)
# os.system("python mki18n.py")
os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py")
os.system("python setup.py sdist --format=zip,gztar")