Skip to content

Commit 5e9b8b8

Browse files
committed
Support using cibuildwheel to build interrogate wheels
1 parent 82a80b5 commit 5e9b8b8

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

pyproject.toml

+19-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,27 @@ interrogate_module = "interrogate_module:main"
3131
[tool.scikit-build]
3232
cmake.version = ">=3.13"
3333
cmake.args = ["-DBUILD_SHARED_LIBS=OFF", "-DHAVE_PYTHON=ON", "-DPYTHON_ARCH_INSTALL_DIR=."]
34-
wheel.py-api = "cp32"
34+
wheel.py-api = "cp33"
3535
install.components = ["tools", "python_modules"]
3636

3737
[tool.scikit-build.wheel.packages]
3838
interrogate = "python/interrogate"
3939
interrogate_module = "python/interrogate_module"
40+
41+
[tool.cibuildwheel]
42+
build = "cp38-*"
43+
44+
[tool.cibuildwheel.linux]
45+
repair-wheel-command = [
46+
"auditwheel repair -w {dest_dir} {wheel}",
47+
"pipx run abi3audit --strict --report {wheel}",
48+
]
49+
50+
[tool.cibuildwheel.macos]
51+
repair-wheel-command = [
52+
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
53+
"pipx run abi3audit --strict --report {wheel}",
54+
]
55+
56+
[tool.cibuildwheel.windows]
57+
repair-wheel-command = "pipx run abi3audit --strict --report {wheel}"

src/Config.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ endif()
7070

7171
get_directory_property(_old_cache_vars CACHE_VARIABLES)
7272
if(CMAKE_VERSION VERSION_LESS "3.26")
73-
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development)
73+
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development.Module)
7474
set(_IMPORTED_AS Python::Module)
7575
else()
76-
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development Development.SABIModule)
76+
find_package(Python ${WANT_PYTHON_VERSION} QUIET COMPONENTS Interpreter Development.Module Development.SABIModule)
7777
set(_IMPORTED_AS Python::SABIModule)
7878
endif()
7979

src/dtoolutil/filename.cxx

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
#include <sys/stat.h>
2020
#include <algorithm>
21+
#include <stdlib.h>
22+
#include <limits.h>
2123

2224
#ifdef PHAVE_UTIME_H
2325
#include <utime.h>

0 commit comments

Comments
 (0)