First pass PyInstaller specs for OSX binaries

This commit is contained in:
Aldo Cortesi 2015-08-16 21:44:54 +12:00
parent 7432ad6af7
commit c428578c83
2 changed files with 68 additions and 0 deletions

30
release/pathoc.spec Normal file
View File

@ -0,0 +1,30 @@
# -*- mode: python -*-
from glob import glob
VENV = "../release/venv"
a = Analysis(['../pathod/pathoc'],
hiddenimports=["_cffi_backend"],
hookspath=None,
runtime_hooks=None,
excludes=None,
)
a.datas += Tree(
os.path.join(
VENV,
"lib/python2.7/site-packages/certifi",
),
prefix = "certifi"
)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pathoc',
debug=False,
strip=None,
upx=True,
console=True )

38
release/pathod.spec Normal file
View File

@ -0,0 +1,38 @@
# -*- mode: python -*-
from glob import glob
VENV = "../release/venv"
a = Analysis(['../pathod/pathod'],
hiddenimports=["_cffi_backend"],
hookspath=None,
runtime_hooks=None,
excludes=None,
)
a.datas = Tree(
"../pathod/libpathod/static",
prefix="libpathod/static"
)
a.datas = Tree(
"../pathod/libpathod/templates",
prefix="libpathod/templates"
)
a.datas += Tree(
os.path.join(
VENV,
"lib/python2.7/site-packages/certifi",
),
prefix = "certifi"
)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pathod',
debug=False,
strip=None,
upx=True,
console=True )