mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
build-all.py - don't break in case if some optional dependencies are missing
This commit is contained in:
+6
-2
@@ -1286,9 +1286,13 @@ if "IfcOpenShell-Python" in targets:
|
|||||||
if python_executable:
|
if python_executable:
|
||||||
run([python_executable, "-m", "ensurepip"])
|
run([python_executable, "-m", "ensurepip"])
|
||||||
run([python_executable, "-m", "pip", "install", "--user", "numpy", "typing_extensions"])
|
run([python_executable, "-m", "pip", "install", "--user", "numpy", "typing_extensions"])
|
||||||
module_dir = os.path.dirname(
|
module_dir = run(
|
||||||
run([python_executable, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"])
|
[python_executable, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"]
|
||||||
)
|
)
|
||||||
|
# Use just the last line is used,
|
||||||
|
# because output might contain warning like `No stream support: No module named 'lark'`.
|
||||||
|
module_dir = module_dir.strip().splitlines()[-1]
|
||||||
|
module_dir = os.path.dirname(module_dir)
|
||||||
|
|
||||||
if platform.system() != "Darwin":
|
if platform.system() != "Darwin":
|
||||||
if BUILD_CFG == "Release":
|
if BUILD_CFG == "Release":
|
||||||
|
|||||||
Reference in New Issue
Block a user