Skip to content

Commit bd5b30a

Browse files
Stephanie ReederStephanie Reeder
authored andcommitted
add mac hooks
1 parent ae01919 commit bd5b30a

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

setup/Windows/ODMTools.spec

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
3+
a = Analysis(['D:\\DEV\\ODMTools\\ODMTools.py'],
4+
pathex=['D:\\DEV\\ODMTools\\setup\\Windows'],
5+
binaries=None,
6+
datas=None,
7+
hiddenimports=[],
8+
hookspath=['../hooks'],
9+
runtime_hooks=None,
10+
excludes=['PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui'],
11+
win_no_prefer_redirects=False,
12+
win_private_assemblies=False,
13+
cipher=block_cipher)
14+
pyz = PYZ(a.pure, a.zipped_data,
15+
cipher=block_cipher)
16+
exe = EXE(pyz,
17+
a.scripts,
18+
exclude_binaries=True,
19+
name='ODMTools',
20+
debug=False,
21+
strip=False,
22+
upx=False,
23+
console=True , version='D:\\DEV\\ODMTools\\setup\\version.txt', icon='D:\\DEV\\ODMTools\odmtools\\common\\icons\\ODMTools.ico')
24+
coll = COLLECT(exe,
25+
a.binaries,
26+
a.zipfiles,
27+
a.datas,
28+
strip=False,
29+
upx=True,
30+
name='ODMTools')
31+
32+
33+
34+
35+
# -*- mode: python -*-
36+
37+
block_cipher = None
38+
39+
40+
a = Analysis(['ODMTools.py'],
41+
pathex=['D:\\DEV\\ODMTools'],
42+
binaries=None,
43+
datas=None,
44+
hiddenimports=[],
45+
hookspath=[],
46+
runtime_hooks=[],
47+
excludes=[],
48+
win_no_prefer_redirects=False,
49+
win_private_assemblies=False,
50+
cipher=block_cipher)
51+
pyz = PYZ(a.pure, a.zipped_data,
52+
cipher=block_cipher)
53+
exe = EXE(pyz,
54+
a.scripts,
55+
exclude_binaries=True,
56+
name='ODMTools',
57+
debug=False,
58+
strip=False,
59+
upx=True,
60+
console=True )
61+
coll = COLLECT(exe,
62+
a.binaries,
63+
a.zipfiles,
64+
a.datas,
65+
strip=False,
66+
upx=True,
67+
name='ODMTools')

setup/hooks/hook-matplotlib.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#-----------------------------------------------------------------------------
2+
# Copyright (c) 2013, PyInstaller Development Team.
3+
#
4+
# Distributed under the terms of the GNU General Public License with exception
5+
# for distributing bootloader.
6+
#
7+
# The full license is in the file COPYING.txt, distributed with this software.
8+
#-----------------------------------------------------------------------------
9+
10+
11+
from PyInstaller.utils.hooks import exec_statement
12+
13+
mpl_data_dir = exec_statement(
14+
"import matplotlib; print matplotlib._get_data_path()")
15+
16+
datas = [
17+
(mpl_data_dir, ""),
18+
]

setup/hooks/hook-pandas.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
from PyInstaller.utils.hooks import exec_statement
3+
#from PyInstaller.build import Tree
4+
5+
pandas_path = exec_statement("import pandas; print pandas.__path__[0]")
6+
print pandas_path
7+
8+
#dict_tree = Tree(pandas_path, prefix='pandas', excludes=["*.pyc"])
9+
#datas = dict_tree
10+
#binaries = filter(lambda x: 'pandas' not in x[0], binaries)

setup/hooks/hook-scipy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hiddenimports = ['scipy.linalg']

0 commit comments

Comments
 (0)