diff --git a/nix/build-all.py b/nix/build-all.py index 815c36bc14..0c5523fff8 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -900,8 +900,9 @@ if "IfcOpenShell-Python" in targets: module_dir = os.path.dirname(run([python_executable, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"])) if platform.system() != "Darwin": - # TODO: This symbol name depends on the Python version? - run([strip, "-s", "-K", "PyInit__ifcopenshell_wrapper", "_ifcopenshell_wrapper.so"], cwd=module_dir) + if BUILD_CFG == "Release": + # TODO: This symbol name depends on the Python version? + run([strip, "-s", "-K", "PyInit__ifcopenshell_wrapper", "_ifcopenshell_wrapper.so"], cwd=module_dir) return module_dir