fixes for make_packages
This commit is contained in:
parent
91ea2d8752
commit
9874afac8b
|
@ -27,6 +27,8 @@ if __name__ == '__main__':
|
||||||
'dns',
|
'dns',
|
||||||
'six',
|
'six',
|
||||||
]
|
]
|
||||||
|
# don't use /usr/lib
|
||||||
|
sys.path = ['/usr/local/lib/python2.7/dist-packages']
|
||||||
for module in deps:
|
for module in deps:
|
||||||
f, pathname, descr = imp.find_module(module)
|
f, pathname, descr = imp.find_module(module)
|
||||||
target = 'packages/' + module + descr[0]
|
target = 'packages/' + module + descr[0]
|
||||||
|
@ -39,6 +41,11 @@ if __name__ == '__main__':
|
||||||
print command
|
print command
|
||||||
os.system(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("python mki18n.py")
|
||||||
os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py")
|
os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py")
|
||||||
os.system("python setup.py sdist --format=zip,gztar")
|
os.system("python setup.py sdist --format=zip,gztar")
|
||||||
|
|
Loading…
Reference in New Issue