Skip to content

Commit

Permalink
numpy 2, the adventure begins
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwright committed Jun 18, 2024
1 parent c455076 commit 8b732a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@ requires = ["setuptools",
"six",
"wheel",
"numpy; python_version=='2.7'",
"oldest-supported-numpy; python_version>='3.0'" ]
# There is no way to compile for versions < 1.25 and up to 2.
# See https://numpy.org/doc/2.0/dev/depending_on_numpy.html
#
# This gives you all versions < 2.0
# "oldest-supported-numpy; python_version>='3.0'" ]
#
# This gives all versions > 1.25
"numpy>=2.0.0rc1; python_version>='3.0'" ]
build-backend = "setuptools.build_meta"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def build_extension(self, ext):

minimal = [ # can't compile without this
"six",
"numpy",
'numpy ; python_version < "3"',
'numpy>=1.23.5 ; python_version >= "3"',
"setuptools",
]

Expand Down

0 comments on commit 8b732a2

Please sign in to comment.