mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
build-all: support providing ld library paths on Mac
This commit is contained in:
+3
-2
@@ -350,6 +350,7 @@ def cecho(message, color=NO_COLOR):
|
|||||||
|
|
||||||
|
|
||||||
APPLE = platform.system() == "Darwin"
|
APPLE = platform.system() == "Darwin"
|
||||||
|
LIBRARY_PATH_ENV_VAR = "DYLD_LIBRARY_PATH" if APPLE else "LD_LIBRARY_PATH"
|
||||||
MAC_CROSS_COMPILE_INTEL = ARGS.mac_cross_compile_intel
|
MAC_CROSS_COMPILE_INTEL = ARGS.mac_cross_compile_intel
|
||||||
assert APPLE or not MAC_CROSS_COMPILE_INTEL
|
assert APPLE or not MAC_CROSS_COMPILE_INTEL
|
||||||
|
|
||||||
@@ -1832,7 +1833,7 @@ if not WASM and (
|
|||||||
examples_bin_dir = Path(DEPS_DIR) / "install" / "ifcopenshell" / "bin"
|
examples_bin_dir = Path(DEPS_DIR) / "install" / "ifcopenshell" / "bin"
|
||||||
|
|
||||||
examples_env = os.environ.copy()
|
examples_env = os.environ.copy()
|
||||||
examples_env["LD_LIBRARY_PATH"] = os.pathsep.join(ld_library_paths)
|
examples_env[LIBRARY_PATH_ENV_VAR] = os.pathsep.join(ld_library_paths)
|
||||||
|
|
||||||
examples: dict[tuple[str, ...], str | None] = {
|
examples: dict[tuple[str, ...], str | None] = {
|
||||||
("./IfcOpenHouse",): "IfcOpenHouse.ifc",
|
("./IfcOpenHouse",): "IfcOpenHouse.ifc",
|
||||||
@@ -1928,7 +1929,7 @@ if "IfcOpenShell-Python" in targets:
|
|||||||
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"])
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["LD_LIBRARY_PATH"] = os.pathsep.join(ld_library_paths)
|
env[LIBRARY_PATH_ENV_VAR] = os.pathsep.join(ld_library_paths)
|
||||||
module_dir = run(
|
module_dir = run(
|
||||||
[python_executable, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"],
|
[python_executable, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"],
|
||||||
env=env,
|
env=env,
|
||||||
|
|||||||
Reference in New Issue
Block a user