Skip to content

Commit

Permalink
Try Linux builds #3
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Aug 27, 2024
1 parent b2d16e3 commit 2960fe5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"]
Expand Down

0 comments on commit 2960fe5

Please sign in to comment.