Skip to content

Commit

Permalink
fix: recompile for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jul 6, 2024
1 parent 1ad6adc commit 0690d98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
uses: docker/setup-qemu-action@v1

- name: Build wheels
uses: joerick/cibuildwheel@v2.16.5
uses: joerick/cibuildwheel@v2.19.1
# to supply options, put them in 'env', like:
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BEFORE_BUILD: pip install oldest-supported-numpy setuptools wheel cython
CIBW_BEFORE_BUILD: pip install numpy setuptools wheel cython
CIBW_ARCHS_MACOS: "x86_64 arm64"

- uses: actions/upload-artifact@v2
Expand Down
3 changes: 3 additions & 0 deletions dijkstra3d.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ import cython
from libcpp.vector cimport vector
cimport numpy as cnp
import numpy as np

np.import_array()

import warnings

__VERSION__ = '1.14.0'
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
requires = [
"setuptools>=42",
"wheel",
"oldest-supported-numpy",
"numpy",
"cython",
]

build-backend = "setuptools.build_meta"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def read(fname):

setuptools.setup(
name="dijkstra3d",
version="1.15.0",
python_requires=">=3.7,<4.0",
version="1.15.1",
python_requires=">=3.8,<4.0",
setup_requires=['numpy','cython'],
ext_modules=[
setuptools.Extension(
Expand Down

0 comments on commit 0690d98

Please sign in to comment.