Add cadquery as datas to pyinstaller.spec

Trying to fix docs in static builds
This commit is contained in:
jdegenstein
2022-09-20 20:49:34 -05:00
committed by GitHub
parent fe7431fd20
commit 6d23572722

View File

@@ -9,6 +9,8 @@ block_cipher = None
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*')
cqw_path = Path(site.getsitepackages()[-1]) / 'cq_warehouse'
cq_path = Path(site.getsitepackages()[-1]) / 'cadquery'
#cqe_path = Path(site.getsitepackages()[-1]) / 'CQ'
if sys.platform == 'linux':
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
@@ -28,7 +30,8 @@ a = Analysis(['run.py'],
binaries=[ocp_path] + binaries1,
datas=[(spyder_data, 'spyder'),
(occt_dir, 'opencascade'),
(cqw_path, 'cq_warehouse')] +
(cqw_path, 'cq_warehouse'),
(cq_path, 'cadquery')] +
[(p, 'parso/python') for p in parso_grammar] + datas1,
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5',