Skip to content

Commit 638b741

Browse files
Bundle whole spyder data folder
1 parent 54fadda commit 638b741

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pyinstaller.spec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,18 @@ from path import Path
55

66
block_cipher = None
77

8-
spyder_fonts = Path(site.getsitepackages()[-1]) / 'spyder/fonts'
8+
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
99
parso_grammar = Path(site.getsitepackages()[-1]) / 'parso/python/grammar36.txt'
1010

1111
if sys.platform == 'linux':
1212
oce_dir = Path(sys.prefix) / 'share' / 'oce-0.18'
1313
else:
1414
oce_dir = Path(sys.prefix) / 'Library' / 'share' / 'oce'
1515

16-
with open('dummy','wb'):
17-
pass
18-
1916
a = Analysis(['run.py'],
2017
pathex=['/home/adam/cq/CQ-editor'],
2118
binaries=[],
22-
datas=[('dummy', 'spyder/utils'),
23-
(spyder_fonts ,'spyder/fonts'),
19+
datas=[(spyder_data ,'spyder'),
2420
(parso_grammar, 'parso/python'),
2521
(oce_dir , 'oce')],
2622
hiddenimports=['ipykernel.datapub'],

0 commit comments

Comments
 (0)