Skip to content

Commit

Permalink
Not ready for python2 due to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwright committed Jun 18, 2024
1 parent 8b732a2 commit ea5aa69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install:
- "set TMPDIR=C:\\tmp"
- python -c "import sys; print(sys.executable, sys.version)"
- python -m pip install --upgrade pip setuptools
- python -m pip install pytest numpy
- python -m pip install pytest 'numpy<2'
- python -m pip install --ignore-installed certifi --upgrade-strategy only-if-needed --only-binary=h5py --only-binary=scipy --only-binary=hdf5plugin .


Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ requires = ["setuptools",
# 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'" ]
"oldest-supported-numpy; python_version>='3.0'" ]
#
# This gives all versions > 1.25
"numpy>=2.0.0rc1; python_version>='3.0'" ]
# "numpy>=2.0.0rc1; python_version>='3.0'" ]
#
# As usual, the dependencies are not ready.
# pin numpy < 2 for now.
#
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 @@ -143,7 +143,8 @@ def build_extension(self, ext):
minimal = [ # can't compile without this
"six",
'numpy ; python_version < "3"',
'numpy>=1.23.5 ; python_version >= "3"',
# Until the dependencies are ready
'numpy<2 ; python_version >= "3"',
"setuptools",
]

Expand Down

0 comments on commit ea5aa69

Please sign in to comment.