From 2960fe553f33e8fdbe20f0ea401bc523aa2dd13a Mon Sep 17 00:00:00 2001 From: Christoph Schueler Date: Tue, 27 Aug 2024 14:37:45 +0300 Subject: [PATCH] Try Linux builds #3 --- build_ext.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build_ext.py b/build_ext.py index d1e4fab..55c1ebc 100644 --- a/build_ext.py +++ b/build_ext.py @@ -9,16 +9,14 @@ from pathlib import Path from tempfile import TemporaryDirectory - +print("ENV:", os.environ) + TOP_DIR = Path(__file__).parent print("Platform", platform.system()) uname = platform.uname() if uname.system == "Darwin": - os.environ["MACOSX_DEPLOYMENT_TARGET"] = "11.0" - -print("ENV:", os.environ) - + os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.11" def banner(msg: str) -> None: print("=" * 80) @@ -33,7 +31,7 @@ def build_extension(debug: bool = False, use_temp_dir: bool = False) -> None: cfg = "Debug" if debug else "Release" print(f" BUILD-TYPE: {cfg!r}") cmake_args = [ - f"-DPYTHON_EXECUTABLE={sys.executable}", + # f"-DPYTHON_EXECUTABLE={sys.executable}", f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm ] build_args = ["--config Release", "--verbose"]