mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-30 23:50:15 +00:00
python-numpy: bump to 1.26.0
This commit is contained in:
21
packages/python-numpy/numpy-distutils-core.py.patch
Normal file
21
packages/python-numpy/numpy-distutils-core.py.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
When building without meson, `setup.py` generates a weird verion string `1.26.1.26.0`.
|
||||
|
||||
Numpy's code has a logical error when doing some code clean-up in commit [1].
|
||||
This causes the abnormal version string `1.26.01.26.0`, and then `setuptools`
|
||||
normalized this string as `1.26.1.26.0`.
|
||||
|
||||
See also:
|
||||
[1] https://github.com/numpy/numpy/commit/a880c68752c47a63577e55689275b5fb9d6595a3
|
||||
[2] https://github.com/numpy/numpy/pull/24196#discussion_r1291739515
|
||||
--- a/numpy/distutils/core.py
|
||||
+++ b/numpy/distutils/core.py
|
||||
@@ -65,7 +65,8 @@
|
||||
elif isinstance(dv, dict):
|
||||
_dict_append(dv, **v)
|
||||
elif is_string(dv):
|
||||
- d[k] = dv + v
|
||||
+ assert is_string(v)
|
||||
+ d[k] = v
|
||||
else:
|
||||
raise TypeError(repr(type(dv)))
|
||||
|
||||
Reference in New Issue
Block a user