Skip to content

Commit 5ad711d

Browse files
author
stephanie
committed
update hooks and spec files
1 parent 484ee22 commit 5ad711d

File tree

5 files changed

+46
-3
lines changed

5 files changed

+46
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@ setup/Output/setup.exe
6565
Temp
6666

6767
*.app
68-
*.spec
6968

7069

make.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def run_pyinstaller(console=False):
158158
'--icon=%s ' % WIN_ICON_FILE +
159159
'--version-file=%s ' % VERSION_FILE +
160160
# '--onefile ' +
161+
'--exclude=
161162
'--noconfirm ' + APP_FILE)
162163
else:
163164
## Non Console Version

setup/Mac/ODMTools.spec

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# -*- mode: python -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['/Users/stephanie/DEV/ODMToolsPython/ODMTools.py'],
7+
pathex=['../Mac'],
8+
binaries=None,
9+
datas=None,
10+
hiddenimports=[],
11+
hookspath=['../hooks'],
12+
runtime_hooks=None,
13+
excludes=['PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui'],
14+
win_no_prefer_redirects=False,
15+
win_private_assemblies=False,
16+
cipher=block_cipher)
17+
pyz = PYZ(a.pure, a.zipped_data,
18+
cipher=block_cipher)
19+
exe = EXE(pyz,
20+
a.scripts,
21+
exclude_binaries=True,
22+
name='ODMTools',
23+
debug=False,
24+
strip=False,
25+
upx=True,
26+
console=False , version='/Users/stephanie/DEV/ODMToolsPython/setup/version.txt', icon='odmtools/common/icons/ODMTools.icns')
27+
coll = COLLECT(exe,
28+
a.binaries,
29+
a.zipfiles,
30+
a.datas,
31+
strip=False,
32+
upx=False,
33+
name='ODMTools')
34+
app = BUNDLE(coll,
35+
name='ODMTools.app',
36+
icon='odmtools/common/icons/ODMTools.icns',
37+
bundle_identifier=None)

setup/hooks/hook-sqlalchemy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Contributed by Greg Copeland
2020

21-
from PyInstaller.hooks.hookutils import exec_statement
21+
from PyInstaller.utils.hooks import exec_statement
2222

2323
# include most common database bindings
2424
# some database bindings are detected and include some
@@ -48,7 +48,6 @@
4848
hiddenimports.append("sqlalchemy.orm." + n)
4949
print "!!", n
5050

51-
5251
# sqlalchemy.dialects package from 0.6 and newer sqlachemy versions
5352
version = exec_statement('import sqlalchemy; print sqlalchemy.__version__')
5453
is_alch06 = version >= '0.6'

setup/hooks/hook-wx.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os, sys
2+
from PyInstaller.utils.hooks import collect_data_files
3+
4+
5+
datas = collect_data_files('wx')
6+
7+
#datas += [(os.path.join(os.path.dirname(sys.executable), '../lib/libwx_osx_cocoau-3.0.0.0.0.dylib'), '.')]

0 commit comments

Comments
 (0)