Skip to content
Snippets Groups Projects

Extractors

Merged Boman Romain requested to merge extractors into master
1 file
+ 27
11
Compare changes
  • Side-by-side
  • Inline
+ 27
11
@@ -2,7 +2,7 @@
@@ -2,7 +2,7 @@
# BUILD DIST:
# BUILD DIST:
# load environment
# load environment
# pyinstaller --noconfirm fossils.spec
# pyinstaller --noconfirm fossils-win.spec
block_cipher = None
block_cipher = None
@@ -63,13 +63,29 @@ exe = EXE(
@@ -63,13 +63,29 @@ exe = EXE(
entitlements_file=None,
entitlements_file=None,
icon='gui/icons/fossils.ico',
icon='gui/icons/fossils.ico',
)
)
coll = COLLECT(
exe,
# when using VBox + mesa drivers installed on c:\Python310\python.exe,
a.binaries,
# mesa dlls are copied into the installer which makes
a.zipfiles,
# gmsh display crash at runtime.
a.datas,
# => we manually remove the libraries related to openGL (they are not present when built outside a vbox)
strip=False,
# see https://stackoverflow.com/questions/58097858/how-to-exclude-opengl32sw-dll-from-pyqt5-library-when-using-pyinstaller
upx=False, # works well but slower runtime
to_keep = []
upx_exclude=[],
to_exclude = {'opengl32.dll', 'libglapi.dll', 'libgallium_wgl.dll'}
name='fossils',
for (dest, source, kind) in a.binaries:
)
if os.path.split(dest)[1].lower() in to_exclude:
 
print(f'removing {source}')
 
continue
 
to_keep.append((dest, source, kind))
 
a.binaries = to_keep
 
 
if 1:
 
coll = COLLECT(
 
exe,
 
a.binaries,
 
a.zipfiles,
 
a.datas,
 
strip=False,
 
upx=False, # works well but slower runtime
 
upx_exclude=[],
 
name='fossils',
 
)
Loading