Skip to content
Snippets Groups Projects
Commit 4c292b1e authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

PyInstaller fixes

parent 033819e5
No related branches found
No related tags found
No related merge requests found
# -*- mode: python -*- # -*- mode: python -*-
from os.path import basename, dirname, join
from glob import glob
single_file = True single_file = True
# This makes the executable spew debug info.
debug = False
from os.path import expanduser from os.path import expanduser
a = Analysis(['bin/loopy'], a = Analysis(['bin/loopy'],
...@@ -11,6 +17,19 @@ a = Analysis(['bin/loopy'], ...@@ -11,6 +17,19 @@ a = Analysis(['bin/loopy'],
runtime_hooks=None, runtime_hooks=None,
excludes=["hedge", "meshpy", "pyopencl", "PIL"] excludes=["hedge", "meshpy", "pyopencl", "PIL"]
) )
import ply.lex
import ply.yacc
a.datas += [
(join("py-src", "ply", "lex", basename(fn)), fn, "DATA")
for fn in glob(join(dirname(ply.lex.__file__), "*.py"))
] + [
(join("py-src", "ply", "yacc", basename(fn)), fn, "DATA")
for fn in glob(join(dirname(ply.yacc.__file__), "*.py"))
]
pyz = PYZ(a.pure) pyz = PYZ(a.pure)
if single_file: if single_file:
...@@ -20,7 +39,7 @@ if single_file: ...@@ -20,7 +39,7 @@ if single_file:
a.zipfiles, a.zipfiles,
a.datas, a.datas,
name='loopy', name='loopy',
debug=False, debug=debug,
strip=None, strip=None,
upx=True, upx=True,
console=True) console=True)
...@@ -29,7 +48,7 @@ else: ...@@ -29,7 +48,7 @@ else:
a.scripts, a.scripts,
exclude_binaries=True, exclude_binaries=True,
name='loopy', name='loopy',
debug=False, debug=debug,
strip=None, strip=None,
upx=True, upx=True,
console=True) console=True)
......
#! /bin/bash #! /bin/bash
# should be run in this directory (build-helpers)
set -e set -e
set -x set -x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment