diff --git a/loopy.spec b/loopy.spec index d2b85b45e5b079e91ecaab64493b5050b5598630..85ad633e71cf145b02a808c0efbc2455946c67fb 100644 --- a/loopy.spec +++ b/loopy.spec @@ -1,6 +1,7 @@ # -*- mode: python -*- block_cipher = None +single_file = True a = Analysis(['bin/loopy'], @@ -8,17 +9,35 @@ a = Analysis(['bin/loopy'], hiddenimports=[], hookspath=None, runtime_hooks=None, - excludes=["hedge"], + excludes=["hedge", "meshpy", "pyopencl"], cipher=block_cipher) pyz = PYZ(a.pure, cipher=block_cipher) -exe = EXE(pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - name='loopy', - debug=False, - strip=None, - upx=True, - console=True ) + +if single_file: + exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + name='loopy', + debug=False, + strip=None, + upx=True, + console=True) +else: + exe = EXE(pyz, + a.scripts, + exclude_binaries=True, + name='loopy', + debug=False, + strip=None, + upx=True, + console=True) + coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=None, + upx=True, + name='loopy') diff --git a/run-pyinstaller.sh b/run-pyinstaller.sh index 23e2774e2b55bb65da571cd7638250770c385ae7..c88389bb428d16a27970a7536da1999843dd651e 100755 --- a/run-pyinstaller.sh +++ b/run-pyinstaller.sh @@ -5,4 +5,3 @@ rm -Rf dist/loopy pyinstaller \ --workpath=build/pyinstaller \ loopy.spec -# --onedir \