Skip to content

Commit 7887cb4

Browse files
author
stephanie
committed
add new mac library
1 parent f9c9c6c commit 7887cb4

File tree

4 files changed

+53
-28
lines changed

4 files changed

+53
-28
lines changed

make.py

+31-2
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,46 @@ def run_pyinstaller(console=False):
153153
os.system(command)
154154
else:
155155
## Non Console Version
156+
<<<<<<< Updated upstream
156157
command = """pyinstaller --clean --distpath=%s --workpath=%s --specpath=%s --noupx --icon=%s --version-file=%s --onefile --noconsole --noconfirm %s""" % (WIN_DIR, WORK_DIR, WIN_DIR, WIN_ICON_FILE, VERSION_FILE, APP_FILE)
158+
=======
159+
command = """pyinstaller --clean --distpath=%s --workpath=%s --specpath=%s --noupx --icon=%s --version-file=%s --onefile --noconsole --noconfirm %s""" % (
160+
WIN_DIR, WORK_DIR, WIN_DIR, WIN_ICON_FILE, VERSION_FILE, APP_FILE)
161+
162+
163+
>>>>>>> Stashed changes
157164
os.system(command)
158165
except Exception as e:
159166
print (e)
160167
return False
161168

162169
def mac_pyinstaller():
163170
try:
164-
os.system("""pyinstaller --clean --distpath=%s --workpath=%s --specpath=%s --upx-dir=%s --icon=%s --version-file=%s --windowed --onefile --noconfirm """ % (MAC_DIST_DIR, MAC_WORK_DIR, MAC_DIR,BASE_DIR, MAC_ICON_FILE, VERSION_FILE, APP_FILE)
171+
172+
173+
#
174+
# os.system('pyinstaller '
175+
# '--clean '
176+
# '--distpath=%s ' % MAC_DIST_DIR +
177+
# '--workpath=%s ' % MAC_WORK_DIR +
178+
# '--specpath=%s ' % MAC_DIR +
179+
# '--upx-dir=%s ' % BASE_DIR +
180+
# '--icon=%s ' % MAC_ICON_FILE +
181+
# '--version-file=%s ' % VERSION_FILE +
182+
# '--windowed '#'--onefile '
183+
# '--noconfirm ' + APP_FILE)
184+
185+
command = """pyinstaller --clean --distpath=%s --workpath=%s --specpath=%s --noupx --icon=%s --version-file=%s --onefile --noconsole --noconfirm %s""" % (
186+
MAC_DIST_DIR, MAC_WORK_DIR, MAC_DIR, MAC_ICON_FILE, VERSION_FILE, APP_FILE)
187+
188+
os.system(command)
189+
165190
#copy "libwx_osx_cocoau-3.0.0.0.0.dylib"
166-
os.system("cp /anaconda/envs/odmtools/lib/libwx_osx_cocoau-3.0.0.0.0.dylib %s" % os.path.join(APP_DIR, "Contents/MacOS/"))
191+
copycommand = "cp /anaconda/envs/odmtools/lib/libwx_osx_cocoau-3.0.0.0.0.dylib %s" % os.path.join(APP_DIR, "Contents/MacOS/")
192+
os.system(copycommand)
193+
copycommand = "cp /anaconda/envs/odmtools/lib/libmkl_avx2.dylib %s" % os.path.join(APP_DIR, "Contents/MacOS/")
194+
os.system(copycommand)
195+
167196

168197
return True
169198
except Exception as e:

setup/Mac/ODMTools.packproj

+4-6
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,9 @@
566566
<key>IFPkgDescriptionDescription</key>
567567
<string></string>
568568
<key>IFPkgDescriptionTitle</key>
569-
570-
<string>ODMTools_v1.2.8</string>
569+
<string>ODMTools_v1.2.9</string>
571570
<key>IFPkgDescriptionVersion</key>
572-
<string>1.2.8 Beta</string>
573-
571+
<string>1.2.9 Beta</string>
574572
</dict>
575573
</dict>
576574
<key>Display Information</key>
@@ -586,7 +584,7 @@
586584
<key>CFBundleName</key>
587585
<string>ODMTools</string>
588586
<key>CFBundleShortVersionString</key>
589-
<string>1.2.8</string>
587+
<string>1.2.9</string>
590588
</dict>
591589
<key>Options</key>
592590
<dict>
@@ -621,7 +619,7 @@
621619
<key>IFPkgFlagPackageSelection</key>
622620
<integer>0</integer>
623621
<key>Name</key>
624-
<string>ODMTools_v1.2.8-beta_Mac_installer</string>
622+
<string>ODMTools_v1.2.9-beta_Mac_installer</string>
625623
<key>Status</key>
626624
<integer>1</integer>
627625
<key>Type</key>

setup/Mac/ODMTools.spec

+11-20
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,24 @@ block_cipher = None
55

66
a = Analysis(['/Users/stephanie/DEV/ODMToolsPython/ODMTools.py'],
77
pathex=['/Users/stephanie/DEV/ODMToolsPython/setup/Mac'],
8-
binaries=None,
9-
datas=None,
108
hiddenimports=[],
11-
hookspath=['/Users/stephanie/DEV/ODMToolsPython/setup/hooks'],
9+
hookspath=None,
1210
runtime_hooks=None,
13-
excludes=['PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui'],
14-
win_no_prefer_redirects=False,
15-
win_private_assemblies=False,
11+
excludes=None,
1612
cipher=block_cipher)
17-
pyz = PYZ(a.pure, a.zipped_data,
13+
pyz = PYZ(a.pure,
1814
cipher=block_cipher)
1915
exe = EXE(pyz,
2016
a.scripts,
21-
exclude_binaries=True,
17+
a.binaries,
18+
a.zipfiles,
19+
a.datas,
2220
name='ODMTools',
2321
debug=False,
24-
strip=False,
25-
upx=True,
26-
console=False , version='/Users/stephanie/DEV/ODMToolsPython/setup/version.txt', icon='/Users/stephanie/DEV/ODMToolsPython/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,
22+
strip=None,
23+
upx=False,
24+
console=False , version='/Users/stephanie/DEV/ODMToolsPython/setup/version.txt', icon='odmtools/common/icons/ODMTools.icns')
25+
app = BUNDLE(exe,
3526
name='ODMTools.app',
36-
icon='/Users/stephanie/DEV/ODMToolsPython/odmtools/common/icons/ODMTools.icns',
27+
icon='odmtools/common/icons/ODMTools.icns',
3728
bundle_identifier=None)

setup/hooks/hook-wx.lib.pubsub.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
3+
def hook(mod):
4+
pth = str(mod.__path__[0])
5+
if os.path.isdir(pth):
6+
mod.__path__.append(os.path.normpath(os.path.join(pth, 'kwargs')))
7+
return mod

0 commit comments

Comments
 (0)