diff --git a/contrib/make_packages b/contrib/make_packages index 0109d62e..3a7febf9 100755 --- 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")