update spec files

This commit is contained in:
Maximilian Hils 2015-12-03 14:32:45 +01:00
parent b97988baee
commit f772fdeb33
2 changed files with 14 additions and 38 deletions

View File

@ -1,23 +1,15 @@
# -*- mode: python -*-
from glob import glob
from PyInstaller.utils.hooks import collect_data_files
VENV = "../release/venv"
a = Analysis(['../../pathod/pathoc'],
hiddenimports=["_cffi_backend"],
a = Analysis(['../pathoc'],
binaries=None,
datas=None,
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)
excludes=None)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(pyz,
a.scripts,
a.binaries,

View File

@ -1,31 +1,15 @@
# -*- mode: python -*-
from glob import glob
from PyInstaller.utils.hooks import collect_data_files
VENV = "../release/venv"
a = Analysis(['../../pathod/pathod'],
hiddenimports=["_cffi_backend"],
a = Analysis(['../pathod'],
binaries=None,
datas=collect_data_files("libpathod"),
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)
excludes=None)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(pyz,
a.scripts,
a.binaries,