summaryrefslogtreecommitdiffstats
path: root/python-numpy/build/patches/numpy-1.2x_python310.patch
blob: 17c8fa7538077052fa39f622c7e29c1918ea01e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- numpy-1.21.3/setup.py.orig	2021-10-20 00:17:30.277592000 +0200
+++ numpy-1.21.3/setup.py	2021-10-21 13:54:50.722540527 +0200
@@ -30,7 +30,9 @@
 
 # Python supported version checks. Keep right after stdlib imports to ensure we
 # get a sensible error for older Python versions
-if sys.version_info[:2] < (3, 7):
+if sys.version_info[0] < 3:
+    raise RuntimeError("Python version >= 3 required.")
+if sys.version_info[1] < 7:
     raise RuntimeError("Python version >= 3.7 required.")