mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-python/pythran: add := dep on numpy
A user upgrading an older system hit the following when building
dev-python/bottleneck:
```
[...]
File "/usr/lib/python3.11/site-packages/pythran/analyses/aliases.py", line 6, in <module>
from pythran.tables import functions, methods, MODULES
File "/usr/lib/python3.11/site-packages/pythran/tables.py", line 4597, in <module>
save_arguments((), MODULES)
File "/usr/lib/python3.11/site-packages/pythran/tables.py", line 4560, in save_arguments
save_arguments(module_name + (elem,), signature)
File "/usr/lib/python3.11/site-packages/pythran/tables.py", line 4560, in save_arguments
save_arguments(module_name + (elem,), signature)
File "/usr/lib/python3.11/site-packages/pythran/tables.py", line 4564, in save_arguments
themodule = import_module(".".join(module_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/scipy/special/__init__.py", line 772, in <module>
from . import _ufuncs
File "scipy/special/_ufuncs.pyx", line 1, in init scipy.special._ufuncs
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
UPDATING /var/tmp/portage/dev-python/bottleneck-1.4.2/work/bottleneck-1.4.2-python3_11/build/lib.linux-x86_64-cpython-311/bottleneck/_version.py
set /var/tmp/portage/dev-python/bottleneck-1.4.2/work/bottleneck-1.4.2-python3_11/build/lib.linux-x86_64-cpython-311/bottleneck/_version.py to '1.4.2'
* ERROR: dev-python/bottleneck-1.4.2::gentoo failed (compile phase):
* Wheel build failed
```
scipy has a := dep on numpy but pythran didn't.
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -29,7 +29,7 @@ RDEPEND="
|
||||
dev-cpp/xsimd
|
||||
=dev-python/beniget-0.4*[${PYTHON_USEDEP}]
|
||||
=dev-python/gast-0.5*[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/numpy:=[${PYTHON_USEDEP}]
|
||||
>=dev-python/ply-3.4[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
<dev-python/setuptools-73[${PYTHON_USEDEP}]
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -29,7 +29,7 @@ RDEPEND="
|
||||
dev-cpp/xsimd
|
||||
=dev-python/beniget-0.4*[${PYTHON_USEDEP}]
|
||||
=dev-python/gast-0.6*[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/numpy:=[${PYTHON_USEDEP}]
|
||||
>=dev-python/ply-3.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-73.0.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
Reference in New Issue
Block a user