Skip to content

Commit 924e9b5

Browse files
committed
Foundry Data Browser pyinstaller updated for MacOS
1 parent c646dd6 commit 924e9b5

3 files changed

Lines changed: 52 additions & 2 deletions

File tree

foundry_data_browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
from viewers.hyperspec_cl_h5 import HyperSpecCLH5View
9898
app.load_view(HyperSpecCLH5View(app))
9999

100-
from FoundryDataBrowser.viewers.hyperspec_h5 import HyperSpecH5View
100+
from viewers.hyperspec_h5 import HyperSpecH5View
101101
app.load_view(HyperSpecH5View(app))
102102

103-
from FoundryDataBrowser.viewers.trpl_h5 import TRPLH5View
103+
from viewers.trpl_h5 import TRPLH5View
104104
app.load_view(TRPLH5View(app))
105105

106106
sys.exit(app.exec_())

foundry_data_browser_mac.spec

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- mode: python -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['foundry_data_browser.py'],
7+
pathex=['/Users/esbarnard/Dropbox/MolecularFoundry/foundry_scope/FoundryDataBrowser'],
8+
binaries=[],
9+
datas=[],
10+
hiddenimports=['ipykernel.datapub', 'pywt._extensions._cwt', 'qtpy', 'pyqtgraph', 'scipy._lib.messagestream', 'scipy.misc.imread', 'matplotlib', 'skimage'],
11+
hookspath=[],
12+
runtime_hooks=[],
13+
excludes=['tkinter',],
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='foundry_data_browser',
23+
debug=False,
24+
strip=False,
25+
upx=True,
26+
console=True , icon='../ScopeFoundry/scopefoundry_logo2_1024.icns')
27+
coll = COLLECT(exe,
28+
a.binaries,
29+
a.zipfiles,
30+
a.datas,
31+
strip=False,
32+
upx=True,
33+
name='foundry_data_browser')
34+
app = BUNDLE(coll,
35+
name='foundry_data_browser.app',
36+
icon='../ScopeFoundry/scopefoundry_logo2_1024.icns',
37+
info_plist={
38+
'NSHighResolutionCapable': 'True'
39+
},
40+
bundle_identifier=None)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
Windows:
2+
13
conda remove --name pyinstaller --all
24
cd FoundryDataBrowser
35
rmdir /s build dist
46
conda env create -f pyinstaller_win32.yml
57
activate pyinstaller
68
pyinstaller foundry_data_browser_win32.spec
9+
10+
Mac:
11+
12+
conda create -n databrowser_pyinstaller python=3.6
13+
conda activate databrowser_pyinstaller
14+
conda install h5py pyqt numpy scipy nomkl ipython qtconsole qtpy pyqtgraph pillow matplotlib scikit-image
15+
pip install ScopeFoundry
16+
pyinstaller foundry_data_browser_mac.spec

0 commit comments

Comments
 (0)