Skip to content

Commit

Permalink
put sleef in a default feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Sep 18, 2024
1 parent 6f478ca commit 2e97a11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
strategy:
matrix:
platform:
- target: x86_64-unknown-linux-gnu
- target: x86_64
container: quay.io/pypa/manylinux_2_28_x86_64
wheel: wheels-linux-x86_64
package-manager: yum
python: /opt/python/cp38-cp38/bin/python
container: ${{ matrix.platform.container }}
Expand All @@ -34,11 +33,8 @@ jobs:
- name: Install OpenBLAS, LAPACK, OpenSSL (yum)
run: yum -y install openblas-devel lapack-devel openssl-devel
if: matrix.platform.package-manager == 'yum'
- name: Install Sleef (yum)
run: yum -y install https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/s/sleef-devel-3.5.1-3.el8.x86_64.rpm https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/s/sleef-3.5.1-3.el8.x86_64.rpm https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/s/sleef-3.5.1-3.el8.x86_64.rpm
if: matrix.platform.package-manager == 'yum'
- name: Install OpenBLAS, LAPACK, OpenSSL, Sleef (apt)
run: apt-get -y install libopenblas-dev liblapack-dev libsleef-dev
- name: Install OpenBLAS, LAPACK, OpenSSL (apt)
run: apt-get -y install libopenblas-dev liblapack-dev
if: matrix.platform.package-manager == 'apt'

- uses: actions/checkout@v4
Expand All @@ -50,12 +46,12 @@ jobs:
${{ matrix.platform.python }} -m pip install cffi
- name: Build wheel
run: ${{ matrix.platform.python }} -m maturin build --release --out dist -i ${{ matrix.platform.python }} --target ${{ matrix.platform.target }}
run: ${{ matrix.platform.python }} -m maturin build --release --out dist -i ${{ matrix.platform.python }} --target ${{ matrix.platform.target }}-unknown-linux-gnu

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.wheel }}
name: wheels-linux-${{ matrix.platform.target }}
path: dist

macos:
Expand Down
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[features]
mpi = ["dep:mpi", "ndelement/mpi", "ndgrid/mpi"]
sleef = ["rlst/sleef", "green-kernels/sleef"]
strict = []
default = ["sleef"]

[package]
name = "bempp"
Expand All @@ -27,8 +29,8 @@ lazy_static = "1.4"
ndelement = "0.1.1"
ndgrid = "0.1.1"
rayon = "1.9"
rlst = "0.2.0"
green-kernels = "0.2.0"
rlst = { version = "0.2.0", default-features = false }
green-kernels = { version = "0.2.0", default-features = false }

[dev-dependencies]
approx = "0.5"
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repository = "https://github.com/bempp/bempp-rs"
[tool.maturin]
python-source = "python"
module-name = "bempp._bempprs"
no-default-features = true

[tool.ruff]
line-length = 100
Expand Down

0 comments on commit 2e97a11

Please sign in to comment.