commit 9874afac8b89b53d58189a852d49689e68f9255b
parent 91ea2d8752bd61905ed0acdfccebcf1daadf4e92
Author: ThomasV <thomasv@gitorious>
Date: Sat, 21 Feb 2015 12:49:35 +0100
fixes for make_packages
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/contrib/make_packages b/contrib/make_packages
@@ -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")