Add cadquery as datas to pyinstaller.spec
Trying to fix docs in static builds
This commit is contained in:
@@ -9,6 +9,8 @@ block_cipher = None
|
|||||||
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
|
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
|
||||||
parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*')
|
parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*')
|
||||||
cqw_path = Path(site.getsitepackages()[-1]) / 'cq_warehouse'
|
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':
|
if sys.platform == 'linux':
|
||||||
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
|
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
|
||||||
@@ -28,7 +30,8 @@ a = Analysis(['run.py'],
|
|||||||
binaries=[ocp_path] + binaries1,
|
binaries=[ocp_path] + binaries1,
|
||||||
datas=[(spyder_data, 'spyder'),
|
datas=[(spyder_data, 'spyder'),
|
||||||
(occt_dir, 'opencascade'),
|
(occt_dir, 'opencascade'),
|
||||||
(cqw_path, 'cq_warehouse')] +
|
(cqw_path, 'cq_warehouse'),
|
||||||
|
(cq_path, 'cadquery')] +
|
||||||
[(p, 'parso/python') for p in parso_grammar] + datas1,
|
[(p, 'parso/python') for p in parso_grammar] + datas1,
|
||||||
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
|
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
|
||||||
'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5',
|
'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5',
|
||||||
|
|||||||
Reference in New Issue
Block a user