Skip to content

Commit

Permalink
Try Linux builds #6
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Aug 28, 2024
1 parent 6937af4 commit f19ad14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def build_extension(debug: bool = False, use_temp_dir: bool = False) -> None:
f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm
]

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')))}"]
# 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')))}"]

build_args = ["--config Release", "--verbose"]
# cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 /path/to/src
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ build-verbosity = 3
build = "cp3{8,9,10,11,12,13}-*"
manylinux-x86_64-image = "manylinux_2_28"
skip = ["*-manylinux_i686", "*-musllinux_x86_64", "*-musllinux_i686"] # Skip Linux 32bit and MUSL builds.
build-frontend = "pip"
build-frontend = "build"

[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
Expand Down

0 comments on commit f19ad14

Please sign in to comment.