Skip to content

Commit

Permalink
Try Linux builds #5
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Aug 27, 2024
1 parent 568ad99 commit 6937af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def build_extension(debug: bool = False, use_temp_dir: bool = False) -> None:
]

if uname.system == 'Linux' and 'CIBUILDWHEEL' in os.environ:
cmake_args += f"-DPYTHON_INCLUDE_DIR={sysconfig.get_path('include')}"
cmake_args += f"-DPYTHON_LIBRARY={str(Path(sysconfig.get_config_var('LIBDIR')) / Path(sysconfig.get_config_var('LDLIBRARY')))}"
cmake_args += [f"-DPYTHON_INCLUDE_DIR={sysconfig.get_path('include')}"]
cmake_args += [f"-DPYTHON_LIBRARY={str(Path(sysconfig.get_config_var('LIBDIR')) / Path(sysconfig.get_config_var('LDLIBRARY')))}"]

build_args = ["--config Release", "--verbose"]
# cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 /path/to/src
Expand Down

0 comments on commit 6937af4

Please sign in to comment.