You’re right that project.dependencies has numpy>=1.22.3[1], but
upstream is also pinning numpy versions in the build-system.requires
section[2] in the same manner as oldest-supported-numpy[3]. This is for
PyPI distribution purposes; we don’t need to build wheels that support
numpy versions older than the one in Fedora, so you can un-pin these
downstream. I would do something like this in %prep:
# Do not attempt to build with an old version of numpy; this makes
sense for
# PyPI distribution (oldest-supported-numpy) but not here.
sed -r -i 's/(numpy)==/\1>=/' pyproject.toml
– Ben
[1] https://github.com/has2k1/scikit-misc/blob/main/pyproject.toml#L13
[2] https://github.com/has2k1/scikit-misc/blob/main/pyproject.toml#L86
[3] https://github.com/scipy/oldest-supported-numpy/
On 4/30/23 10:47, Sandro wrote:
Hi,
I'm trying to build/update a package using mesonpy [1].
While going through the build process, exploring how the existing
macros behave together with mesonpy, I came across a weird build
error, for which I have not yet found a cause or explanation.
The build fails with [2]:
No matching package to install: 'python3dist(numpy) = 1.23.2'
The version in rawhide is 1.24.3, yet the requirement in
pyproject.toml [3] is:
"numpy>=1.22.3"
So, why is it insisting on using 1.23.2 while the existing 1.24.3
satisfies the requirement?
There's one thing I noticed [4], which I believe is unrelated. But I
asked upstream for clarification anyway.
The spec file is currently work in progress. I simply triggered a Copr
build, so I could provide links here and verify that this is not a
local issue in my build environment.
[1] So fresh it's still warm:
https://src.fedoraproject.org/rpms/python-meson-python
[2]
https://download.copr.fedorainfracloud.org/results/gui1ty/neuro-sig/fedora-rawhide-x86_64/05862367-python-scikit-misc/root.log.gz
[3]
https://github.com/has2k1/scikit-misc/blob/8f829888ecf0fa96eb18aeb3f723fc985de5abcd/pyproject.toml#L13
[4] https://github.com/has2k1/scikit-misc/issues/24
Cheers,
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue