File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ from path import Path
6
6
block_cipher = None
7
7
8
8
spyder_data = Path (site .getsitepackages ()[- 1 ]) / 'spyder'
9
- parso_grammar = Path (site .getsitepackages ()[- 1 ]) / 'parso/python/grammar36.txt'
9
+ parso_grammar = ( Path (site .getsitepackages ()[- 1 ]) / 'parso/python' ). glob ( 'grammar*' )
10
10
11
11
if sys .platform == 'linux' :
12
12
oce_dir = Path (sys .prefix ) / 'share' / 'oce-0.18'
16
16
a = Analysis (['run.py' ],
17
17
pathex = ['/home/adam/cq/CQ-editor' ],
18
18
binaries = [],
19
- datas = [(spyder_data , 'spyder' ),
20
- (parso_grammar , 'parso/python' ),
21
- ( oce_dir , 'oce' ) ],
19
+ datas = [(spyder_data , 'spyder' ),
20
+ (oce_dir , 'oce' )] +
21
+ [( p , 'parso/python' ) for p in parso_grammar ],
22
22
hiddenimports = ['ipykernel.datapub' ],
23
23
hookspath = [],
24
24
runtime_hooks = ['pyinstaller/pyi_rth_occ.py' ,
@@ -42,7 +42,7 @@ exe = EXE(pyz,
42
42
upx = True ,
43
43
console = True ,
44
44
icon = 'icons/cadquery_logo_dark.ico' )
45
-
45
+
46
46
exclude = ('libGL' ,'libEGL' ,'libbsd' )
47
47
a .binaries = TOC ([x for x in a .binaries if not x [0 ].startswith (exclude )])
48
48
You can’t perform that action at this time.
0 commit comments