Skip to content

Commit ce33ce1

Browse files
committed
py310-311: Numpy 1.25.x require c++17
1 parent 158ea86 commit ce33ce1

6 files changed

+35
-7
lines changed

spk/python310/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ WHEELS += src/requirements-crossenv-numpy-armv5.txt
130130
# [numpy] <= 1.22.4 (armv7l)
131131
else ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
132132
WHEELS += src/requirements-crossenv-numpy-armv7l.txt
133-
else
133+
else ifeq ($(call version_le, $(TC_GCC), 5.0),1)
134+
WHEELS += src/requirements-crossenv-numpy-gcc4.txt
135+
# [numpy] >= 1.25.0 requires c++17
136+
else ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
134137
WHEELS += src/requirements-crossenv-numpy.txt
135138
endif
136139
# workaround for compiler bug:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
##
2+
## All configurations below are optional and
3+
## are provided to demonstrate how to build
4+
## various wheels. Uncoment to enable.
5+
##
6+
7+
# [numpy]
8+
# - Require Cython in cross/python311 crossenv
9+
# - aarch64-6.1 require workaround WHEELS_CFLAGS=-O0
10+
# ref: https://github.com/numpy/numpy/issues/13622
11+
numpy==1.23.5
12+
numpy==1.24.4

spk/python310/src/requirements-crossenv-numpy.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
# [numpy]
88
# - Require Cython in cross/python310 crossenv
9-
# - aarch64-6.1 require workaround WHEELS_CFLAGS=-O0
10-
# ref: https://github.com/numpy/numpy/issues/13622
9+
# - Numpy 1.25.x require c++17
1110
numpy==1.23.5
1211
numpy==1.24.4
1312
numpy==1.25.0

spk/python311/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
128128
# [numpy] <= 1.22.4 (armv7l)
129129
ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
130130
WHEELS += src/requirements-crossenv-numpy-armv7l.txt
131-
else
131+
else ifeq ($(call version_le, $(TC_GCC), 5.0),1)
132+
WHEELS += src/requirements-crossenv-numpy-gcc4.txt
133+
# [numpy] >= 1.25.0 requires c++17
134+
else ifeq ($(call version_gt, $(TC_GCC), 5.0),1)
132135
WHEELS += src/requirements-crossenv-numpy.txt
133136
endif
134137
endif
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
##
2+
## All configurations below are optional and
3+
## are provided to demonstrate how to build
4+
## various wheels. Uncoment to enable.
5+
##
6+
7+
# [numpy]
8+
# - Require Cython in cross/python311 crossenv
9+
# - aarch64-6.1 require workaround WHEELS_CFLAGS=-O0
10+
# ref: https://github.com/numpy/numpy/issues/13622
11+
numpy==1.23.5
12+
numpy==1.24.4

spk/python311/src/requirements-crossenv-numpy.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
##
66

77
# [numpy]
8-
# - Require Cython in cross/python311 crossenv
9-
# - aarch64-6.1 require workaround WHEELS_CFLAGS=-O0
10-
# ref: https://github.com/numpy/numpy/issues/13622
8+
# - Require Cython in cross/python310 crossenv
9+
# - Numpy 1.25.x require c++17
1110
numpy==1.23.5
1211
numpy==1.24.4
1312
numpy==1.25.0

0 commit comments

Comments
 (0)