Skip to content

Commit

Permalink
Try using isal system prebuilt lib like blosc2
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Sep 23, 2024
1 parent f5816d6 commit 9aba45d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ jobs:
-e BLOSC2_INSTALL_PREFIX=${{ github.workspace }}/blosc2
-e ISAL_INSTALL_PREFIX=${{ github.workspace }}/isal
-e LD_LIBRARY_PATH=${{ github.workspace }}/blosc2/lib:${{ github.workspace }}/blosc2/lib64:${{ github.workspace }}/isal/lib:${{ github.workspace }}/isal/lib64
args: -i ${{ matrix.python-version }} --release --out dist --features use-system-blosc2-static
args: -i ${{ matrix.python-version }} --release --out dist --features use-system-blosc2-static --features use-system-isal-static
before-script-linux: |
apt update
apt install -y nasm libtool autotools-dev autoconf
ls -l $BLOSC2_INSTALL_PREFIX
ls -l $ISAL_INSTALL_PREFIX
Expand Down
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ xz = ["xz-static"]
xz-static = ["libcramjam/xz-static"]
xz-shared = ["libcramjam/xz-shared"]

igzip = ["libcramjam/igzip"]
igzip = ["isal-static"]
isal-static = ["libcramjam/isal-static"]
isal-shared = ["libcramjam/isal-shared"]
use-system-isal-static = ["libcramjam/use-system-isal", "libcramjam/isal-static"]
use-system-isal-shared = ["libcramjam/use-system-isal", "libcramjam/isal-shared"]

gzip = ["gzip-static"]
gzip-static = ["libcramjam/gzip-static"]
gzip-shared = ["libcramjam/gzip-shared"]
Expand All @@ -48,7 +53,8 @@ wasm32-compat = ["libcramjam/wasm32-compat"]

[dependencies]
pyo3 = { version = "^0.22", default-features = false, features = ["macros"] }
libcramjam = { version = "0.5.0", default-features = false }
# libcramjam = { version = "0.5.0", default-features = false }
libcramjam = { git = "https://github.com/cramjam/libcramjam.git", branch = "bump-isal", default-features = false }

[build-dependencies]
pyo3-build-config = "^0.22"
Expand Down

0 comments on commit 9aba45d

Please sign in to comment.