Skip to content

Commit

Permalink
build abi3 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
zariiii9003 committed Dec 6, 2024
1 parent df1f561 commit 388d72c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ find_package(

python_add_library(cutils
MODULE
src/asammdf/blocks/cutils.c)
src/asammdf/blocks/cutils.c
WITH_SOABI USE_SABI 3.9)

target_link_libraries(cutils PRIVATE Python::NumPy)

install(TARGETS cutils DESTINATION "asammdf/blocks")
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Source = "https://github.com/danielhrisca/asammdf"
metadata.version.provider = "scikit_build_core.metadata.regex"
metadata.version.input = "src/asammdf/version.py"
wheel.packages = ["src/asammdf"]
wheel.py-api = "cp39"

[tool.black]
line-length = 120
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/blocks/cutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ static PyObject *bytes_dtype_size(PyObject *self, PyObject *args)
break;
}

current_size = PyBytes_GET_SIZE(*pointer);
current_size = PyBytes_Size(*pointer);

if (current_size > size) size = current_size;
}
Expand Down

0 comments on commit 388d72c

Please sign in to comment.