Skip to content

Commit

Permalink
py310-py311: Re-enable numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Sep 3, 2024
1 parent 37b1a4d commit b8d4f14
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 32 deletions.
26 changes: 11 additions & 15 deletions spk/python310/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,19 @@ else
WHEELS += src/requirements-crossenv-greenlet-v1.txt
endif

## -->> numpy.distutils is deprecated since NumPy 1.23.0
## -->> Recommend to use `setuptools < 60.0` for Python >= 3.12
## -->> *** WILL REQUIRE PER WHEEL SPECIFIC CROSSENV ***
### [numpy] <= 1.21.6 (armv5)
### This version is now unsupported using pip>=23.2.1
##ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
### [numpy] <= 1.22.4 (armv7l)
##ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
##WHEELS += src/requirements-crossenv-numpy-armv7l.txt
##else ifeq ($(call version_le, $(TC_GCC), 5.0),1)
##WHEELS += src/requirements-crossenv-numpy-gcc4.txt
### [numpy] >= 1.25.0 requires c++17
##else ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
# [numpy] <= 1.21.6 (armv5)
# This version is now unsupported using pip>=23.2.1
ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
# [numpy] <= 1.22.4 (armv7l)
ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
WHEELS += src/requirements-crossenv-numpy-armv7l.txt
else ifeq ($(call version_le, $(TC_GCC), 5.0),1)
WHEELS += src/requirements-crossenv-numpy-gcc4.txt
# [numpy] >= 1.25.0 requires c++17
else ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
WHEELS += src/requirements-crossenv-numpy.txt
endif
##endif
endif

# workaround for compiler bug:
# https://github.com/numpy/numpy/issues/13622
Expand Down
28 changes: 12 additions & 16 deletions spk/python311/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,20 @@ else
WHEELS += src/requirements-crossenv-greenlet-v1.txt
endif

## -->> numpy.distutils is deprecated since NumPy 1.23.0
## -->> Recommend to use `setuptools < 60.0` for Python >= 3.12
## -->> *** WILL REQUIRE PER WHEEL SPECIFIC CROSSENV ***
### [numpy] <= 1.21.6 (armv5)
### This version is now unsupported using py311
##ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
### [numpy] <= 1.22.4 (armv7l)
##ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
##WHEELS += src/requirements-crossenv-numpy-armv7l.txt
### [numpy] <= 1.24.4 last working version with gcc-4.9
##else ifeq ($(call version_le, $(TC_GCC), 5.0),1)
##WHEELS += src/requirements-crossenv-numpy-gcc4.txt
### [numpy] >= 1.25.0 requires c++17
##else ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
# [numpy] <= 1.21.6 (armv5)
# This version is now unsupported using py311
ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
# [numpy] <= 1.22.4 (armv7l)
ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
WHEELS += src/requirements-crossenv-numpy-armv7l.txt
# [numpy] <= 1.24.4 last working version with gcc-4.9
else ifeq ($(call version_le, $(TC_GCC), 5.0),1)
WHEELS += src/requirements-crossenv-numpy-gcc4.txt
# [numpy] >= 1.25.0 requires c++17
else ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
WHEELS += src/requirements-crossenv-numpy.txt
endif
##endif
endif

# workaround for compiler bug:
# https://github.com/numpy/numpy/issues/13622
Expand Down
1 change: 0 additions & 1 deletion spk/python311/src/requirements-crossenv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ pycurl==7.45.3
# PYO3_CROSS_LIB_DIR=$(STAGING_INSTALL_PREFIX)/lib/
# PYO3_CROSS_INCLUDE_DIR=$(STAGING_INSTALL_PREFIX)/include/
pydantic_core==2.23.0
#pydantic_core==2.7.0

# [PyNaCl]
# Depends: cross/libsodium
Expand Down

0 comments on commit b8d4f14

Please sign in to comment.