summaryrefslogtreecommitdiff
path: root/math/py-numpy/files
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2022-01-03 09:49:26 +0100
committerStefan Eßer <se@FreeBSD.org>2022-01-03 09:49:26 +0100
commita2cfb3e0589d26cbb8bf569fdf854f6162ff4915 (patch)
tree20f3bd790dee9e1a240cdc86b289a9733227aa86 /math/py-numpy/files
parentwww/nextcloud: update to 1.11.10 (diff)
math/py-numpy: revert obsolete commit 507c189b28
The sched_getaffinity() function in the C library returned a different error code than expected (i.e. other than returned by GLIBC) if the requested CPU set size did not match the one expected by the system. The error code has been changed from ERANGE to EINVAL as expected by the wrapper for os.sched_getaffinity() in Python, obsoleting the patch that commented out the failing function call in setup.py.
Diffstat (limited to 'math/py-numpy/files')
-rw-r--r--math/py-numpy/files/patch-numpy_distutils_misc__util.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/math/py-numpy/files/patch-numpy_distutils_misc__util.py b/math/py-numpy/files/patch-numpy_distutils_misc__util.py
deleted file mode 100644
index 36f46dc3ae15..000000000000
--- a/math/py-numpy/files/patch-numpy_distutils_misc__util.py
+++ /dev/null
@@ -1,16 +0,0 @@
---- numpy/distutils/misc_util.py.orig 2022-01-02 20:27:35 UTC
-+++ numpy/distutils/misc_util.py
-@@ -92,9 +92,9 @@ def get_num_build_jobs():
-
- """
- from numpy.distutils.core import get_distribution
-- try:
-- cpu_count = len(os.sched_getaffinity(0))
-- except AttributeError:
-- cpu_count = multiprocessing.cpu_count()
-+# try:
-+# cpu_count = len(os.sched_getaffinity(0))
-+# except AttributeError:
-+ cpu_count = multiprocessing.cpu_count()
- cpu_count = min(cpu_count, 8)
- envjobs = int(os.environ.get("NPY_NUM_BUILD_JOBS", cpu_count))