Skip to content

Commit

Permalink
Update build_ext.py
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 authored Jan 15, 2025
1 parent df9eb43 commit 096de56
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ def build_extension(debug: bool = False, use_temp_dir=False) -> None:
cmake_args = [
f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm
]
# if uname.system != "Windows":
# py_cfg = get_py_config()
# cmake_args.extend(
# [
# f"-DPython3_EXECUTABLE={py_cfg['exe']}",
# f"-DPython3_INCLUDE_DIR={py_cfg['include']}",
# ]
# )
# if py_cfg["libdir"]:
# cmake_args.append(f"-DPython3_LIBRARY={str(Path(py_cfg['libdir']) / Path(py_cfg['library']))}") # noqa: RUF010
if uname.system != "Windows":
py_cfg = get_py_config()
cmake_args.extend(
[
f"-DPython3_EXECUTABLE={py_cfg['exe']}",
f"-DPython3_INCLUDE_DIR={py_cfg['include']}",
]
)
if py_cfg["libdir"]:
cmake_args.append(f"-DPython3_LIBRARY={str(Path(py_cfg['libdir']) / Path(py_cfg['library']))}") # noqa: RUF010
build_args = ["--config Release", "--verbose"]

if sys.platform.startswith("darwin"):
Expand Down

0 comments on commit 096de56

Please sign in to comment.