File tree Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Original file line number Diff line number Diff line change 6
6
CIBW_TEST_REQUIRES : " pytest torch"
7
7
CIBW_TEST_COMMAND : " pytest -svv --durations=20 {project}/tests/python/"
8
8
CIBW_ENVIRONMENT : " MLC_SHOW_CPP_STACKTRACES=1"
9
+ CIBW_REPAIR_WHEEL_COMMAND_LINUX : >
10
+ auditwheel repair -w {dest_dir} {wheel} &&
11
+ pipx run abi3audit --strict --report {wheel}
12
+ CIBW_REPAIR_WHEEL_COMMAND_MACOS : >
13
+ delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} &&
14
+ pipx run abi3audit --strict --report {wheel}
15
+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
16
+ pipx run delvewheel repair -w {dest_dir} {wheel} &&
17
+ pipx run abi3audit --strict --report {wheel}
9
18
MLC_CIBW_VERSION : " 2.22.0"
10
19
MLC_PYTHON_VERSION : " 3.9"
11
20
MLC_CIBW_WIN_BUILD : " cp39-win_amd64"
Original file line number Diff line number Diff line change 8
8
CIBW_BUILD_VERBOSITY : 3
9
9
CIBW_TEST_COMMAND : " python -c \" import mlc\" "
10
10
CIBW_ENVIRONMENT : " MLC_RELEASE=1"
11
+ CIBW_REPAIR_WHEEL_COMMAND_LINUX : >
12
+ auditwheel repair -w {dest_dir} {wheel} &&
13
+ pipx run abi3audit --strict --report {wheel}
14
+ CIBW_REPAIR_WHEEL_COMMAND_MACOS : >
15
+ delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} &&
16
+ pipx run abi3audit --strict --report {wheel}
17
+ CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >
18
+ pipx run delvewheel repair -w {dest_dir} {wheel} &&
19
+ pipx run abi3audit --strict --report {wheel}
11
20
MLC_CIBW_VERSION : " 2.22.0"
12
21
MLC_PYTHON_VERSION : " 3.9"
13
- MLC_CIBW_WIN_BUILD : " cp3* -win_amd64"
14
- MLC_CIBW_MAC_BUILD : " cp3* -macosx_arm64"
15
- MLC_CIBW_MAC_X86_BUILD : " cp3* -macosx_x86_64"
16
- MLC_CIBW_LINUX_X86_BUILD : " cp3* -manylinux_x86_64"
17
- MLC_CIBW_LINUX_ARM_BUILD : " cp3* -manylinux_aarch64"
22
+ MLC_CIBW_WIN_BUILD : " cp39 -win_amd64"
23
+ MLC_CIBW_MAC_BUILD : " cp39 -macosx_arm64"
24
+ MLC_CIBW_MAC_X86_BUILD : " cp39 -macosx_x86_64"
25
+ MLC_CIBW_LINUX_X86_BUILD : " cp39 -manylinux_x86_64"
26
+ MLC_CIBW_LINUX_ARM_BUILD : " cp39 -manylinux_aarch64"
18
27
19
28
jobs :
20
29
windows :
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ add_dependencies(mlc mlc-shared)
151
151
########## Target: `mlc_py` ##########
152
152
153
153
if (MLC_BUILD_PY )
154
- find_package (Python COMPONENTS Interpreter Development.Module REQUIRED )
154
+ find_package (Python COMPONENTS Interpreter Development.SABIModule REQUIRED )
155
155
file (GLOB _cython_sources CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /python/mlc/_cython/*.pyx" )
156
156
set (_cython_outputs "" )
157
157
foreach (_in IN LISTS _cython_sources )
@@ -166,7 +166,7 @@ if(MLC_BUILD_PY)
166
166
)
167
167
list (APPEND _cython_outputs "${_out} " )
168
168
endforeach ()
169
- Python_add_library (mlc_py MODULE ${_cython_outputs} WITH_SOABI )
169
+ Python_add_library (mlc_py MODULE ${_cython_outputs} USE_SABI 3.7 )
170
170
set_target_properties (mlc_py PROPERTIES OUTPUT_NAME "core" )
171
171
target_include_directories (mlc_py PRIVATE "${CMAKE_CURRENT_SOURCE_DIR} /include" )
172
172
target_include_directories (mlc_py PRIVATE "${CMAKE_CURRENT_SOURCE_DIR} /3rdparty/dlpack/include" )
Original file line number Diff line number Diff line change 27
27
[project .optional-dependencies ]
28
28
tests = [' pytest' , ' torch' ]
29
29
dev = [
30
- " cython>=3" ,
30
+ " cython>=3.1 " ,
31
31
" pre-commit" ,
32
32
" pytest" ,
33
33
" pipx" ,
@@ -38,7 +38,7 @@ dev = [
38
38
]
39
39
40
40
[build-system ]
41
- requires = [" scikit-build-core>=0.9.8" , " cython" , " setuptools-scm" ]
41
+ requires = [" scikit-build-core>=0.9.8" , " cython>=3.1 " , " setuptools-scm" ]
42
42
build-backend = " scikit_build_core.build"
43
43
44
44
[tool .setuptools_scm ]
@@ -53,6 +53,7 @@ cmake.build-type = "RelWithDebInfo"
53
53
logging.level = " DEBUG"
54
54
wheel.license-files = []
55
55
wheel.install-dir = " mlc"
56
+ wheel.py-api = " cp39"
56
57
install.strip = false
57
58
build-dir = " build-wheels/{wheel_tag}-{build_type}"
58
59
sdist.include = [" python/mlc/_version.py" ]
You can’t perform that action at this time.
0 commit comments