From bb9eba07c04cbd222ac0d7a6db7f372c9496bdd4 Mon Sep 17 00:00:00 2001 From: aothms Date: Sun, 28 Nov 2021 14:08:03 +0000 Subject: [PATCH] build-all.py python library proposal #1884 --- nix/build-all.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nix/build-all.py b/nix/build-all.py index e9b208eeb3..a9a835163c 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -799,7 +799,12 @@ if "IfcOpenShell-Python" in targets: if USE_CURRENT_PYTHON_VERSION: python_info = sysconfig.get_paths() - compile_python_wrapper(platform.python_version(), python_info["purelib"], python_info["include"], sys.executable) + python_lib = os.path.join( + sysconfig.get_config_var('LIBDIR'), + sysconfig.get_config_var('multiarchsubdir').replace("/", ""), + sysconfig.get_config_var("INSTSONAME") + ) + compile_python_wrapper(platform.python_version(), python_lib, python_info["include"], sys.executable) else: for python_version in PYTHON_VERSIONS: python_library = run([bash, "-c", f"ls {DEPS_DIR}/install/python-{python_version}/lib/libpython*.*"])