Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/cibuildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
CIBW_BEFORE_BUILD: python3 -m pip install --upgrade pip && python3 -m pip install -r requirements-build.txt
CIBW_ENVIRONMENT: CMAKE_OSX_ARCHITECTURES=arm64 CMAKE_ARGS="-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
CIBW_BUILD: 'cp313-*'
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "" # don't repair on macOS (too difficult to handle finding libblosc2)
CIBW_BEFORE_TEST: python3 -m pip install --upgrade pip && python3 -m pip install -r requirements-test.txt
CIBW_TEST_COMMAND: /bin/sh -c "cd /tmp && BLOSC_TRACE=1 python3 -m pytest {project}/tests"
CIBW_ARCHS_MACOS: arm64
Expand Down
2 changes: 2 additions & 0 deletions blosc2_symbols.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_b2nd_deserialize_meta
_blosc2_meta_get
10 changes: 8 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ if (MSVC OR MINGW)
endif()

target_include_directories(blosc2_grok PUBLIC ${BLOSC2_INCLUDE_DIR})
# link to grok and to blosc2 (link to blosc2 necessary for Windows and macOS)
target_link_libraries(blosc2_grok grokj2k ${BLOSC2_LIBRARIES})
# link to grok but not to blosc2 (on linux)
target_link_libraries(blosc2_grok PRIVATE grokj2k)

if(APPLE OR WIN32)
# On Windows and macOS easiest to just link to Blosc2 explicitly
target_link_libraries(blosc2_grok PRIVATE ${BLOSC2_LIBRARIES})
endif()
# Link to blosc2 necessary for Windows

# Add runtime path just in case (e.g. load plugin before blosc2 for example)
# will not always be used, but if can't find blosc2 gives another thing to check
Expand Down