Skip to content

Commit

Permalink
Some more fixes (ext not working yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Sep 27, 2023
1 parent 1bb5923 commit 634c9ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions blosc2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ add_custom_command(
COMMAND "${CYTHON}" "${CMAKE_CURRENT_SOURCE_DIR}/blosc2_ext.pyx" --output-file
"${CMAKE_CURRENT_BINARY_DIR}/blosc2_ext.c")

Python_add_library(blosc2_ext MODULE "${CMAKE_CURRENT_BINARY_DIR}/blosc2_ext.c" WITH_SOABI)

if(USE_SYSTEM_BLOSC2)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
Expand All @@ -31,5 +30,7 @@ else()
endif()

include_directories("${Python_NumPy_INCLUDE_DIRS}")
Python_add_library(blosc2_ext MODULE "${CMAKE_CURRENT_BINARY_DIR}/blosc2_ext.c"
WITH_SOABI)

install(TARGETS blosc2_ext DESTINATION ${SKBUILD_PROJECT_NAME})
install(TARGETS blosc2_ext LIBRARY DESTINATION ${SKBUILD_PROJECT_NAME})
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["scikit-build-core", "cython", "numpy>=1.20.3", "ndindex>=1.4", "msgpack"]
requires = ["scikit-build-core", "cython", "numpy>=1.20.3"]
#requires = ["scikit-build-core", "cython", "oldest-supported-numpy"]
build-backend = "scikit_build_core.build"

[project]
Expand Down Expand Up @@ -31,6 +32,7 @@ dependencies = [
"numpy>=1.20.3",
"ndindex>=1.4",
"msgpack",
"py-cpuinfo",
]

[tool.scikit-build]
Expand All @@ -46,7 +48,7 @@ homepage = "https://github.com/Blosc/python-blosc2"
documentation = "https://www.blosc.org/python-blosc2/python-blosc2.html"

[tool.cibuildwheel]
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
skip = "cp36-* cp37-* pp37-* cp38-* pp38-* *-musllinux*"

[tool.black]
line-length = 109
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ def exclude_pkgconfig(cmake_manifest):
setup(
packages=["blosc2"],
cmake_process_manifest_hook=exclude_pkgconfig,
# include_package_data=True,
)

0 comments on commit 634c9ec

Please sign in to comment.