Skip to content

Commit 3bf3005

Browse files
committed
Trying to make sure that Casadi's dynamic libs are included in Windows
1 parent 90b45bb commit 3bf3005

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pyinstaller.spec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
from pathlib import Path
55
import parso
6-
from PyInstaller.utils.hooks import collect_data_files
6+
from PyInstaller.utils.hooks import collect_data_files, collect_dynamic_libs
77

88
block_cipher = None
99

@@ -12,7 +12,9 @@ parso_grammar = (Path(parso.__file__).parent / 'python').glob('grammar*')
1212
a = Analysis(
1313
['run.py'],
1414
pathex=['.'],
15-
binaries=[],
15+
binaries=[
16+
*collect_dynamic_libs('casadi'),
17+
],
1618
datas=[
1719
('cq_editor/icons_res.py', 'cq_editor'),
1820
*[(str(p), 'parso/python') for p in parso_grammar],

0 commit comments

Comments
 (0)