Bug 281470 - math/py-numpy: update to 2.4.3
Summary: math/py-numpy: update to 2.4.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-python (Nobody)
URL: https://numpy.org/devdocs/release/2.0...
Keywords:
: 279814 (view as bug list)
Depends on:
Blocks: 270279 286376 286377 286423
  Show dependency tree / graph
 
Reported: 2024-09-13 01:14 UTC by wen
Modified: 2026-04-11 22:14 UTC (History)
22 users (show)

See Also:
vishwin: maintainer-feedback+
ag-freebsd: maintainer-feedback+


Attachments
Update numpy to 2.1.1 and scipy to 1.14.1 (23.12 KB, patch)
2024-09-13 01:14 UTC, wen
no flags Details | Diff
Update numpy to 2.1.3 (1.78 KB, application/x-gzip)
2024-11-19 08:03 UTC, wen
no flags Details
update math/py-numpy to 2.1.3 (16.16 KB, text/plain)
2024-11-22 01:17 UTC, wen
no flags Details
numpy-2.1.3p1.diff.txt (29.14 KB, patch)
2024-11-23 13:15 UTC, Wen Heping
no flags Details | Diff
Update to 2.3.2 (1.77 KB, application/x-gzip)
2025-09-01 08:12 UTC, wen
no flags Details
Upgrade to numpy-2.3.2, keep numpy1 is a side folder (202.54 KB, patch)
2025-10-18 16:47 UTC, Yuri Victorovich
vishwin: maintainer-approval-
Details | Diff
Upgrade to numpy-2.3.2, keep numpy1 in a side folder (202.53 KB, patch)
2025-10-18 17:39 UTC, Yuri Victorovich
vishwin: maintainer-approval-
Details | Diff
[PATCH] math/py-numpy: Update to 2.4.2 (22.53 KB, patch)
2026-03-02 22:49 UTC, Alastair Hogge
no flags Details | Diff
[PATCH] math/py-numpy: Update to 2.4.3 (22.55 KB, patch)
2026-03-21 02:20 UTC, Alastair Hogge
vishwin: maintainer-approval-
Details | Diff
[PATCH] math/py-numpy: Update to 2.4.3 (22.65 KB, patch)
2026-03-29 06:06 UTC, Alastair Hogge
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description wen 2024-09-13 01:14:56 UTC
Created attachment 253530 [details]
Update numpy to 2.1.1 and scipy to 1.14.1

numpy2 released for a long time, there are 2 choice for us to update numpy:
   1) create a new port: math/py-numpy2
   2) update math/py-numpy to 2.x and create math/py-numpy1 if necessary

   I tried both ways now I would like select 2, althought it would break many ports. We can fix it, actually many ports hold the update waiting for numpy2.

   When update numpy, scipy should be updated together, and pandas, and pythran.

   With this patches, numpy-2.1.1 and scipy-1.14.1 build well and run well, numpy-2.1.1 pass all tests, scipy-1.14.1 has only 6 fails in all tests.

   Any suggestions welcomed !
Comment 1 Michael Osipov freebsd_committer freebsd_triage 2024-09-13 06:51:52 UTC
(In reply to wen from comment #0)
I would not even break many ports, but also people's stuff having 1.x unter that port/package name.
Comment 2 Charlie Li freebsd_committer freebsd_triage 2024-09-13 15:30:45 UTC
At first I'm inclined to agree with option 1 due to the types of consumers (ahem, academic-type software) involved, but a quick look of numpy's development trajectory seems to suggest that only 2.x is to have serious development support going forward so option 2 seems more reasonable. Changing consumers that rely on 1.x to a new port directory/name, given that both the referenced software remains the same and can co-exist, does not constitute a POLA trigger.
Comment 3 Michael Osipov freebsd_committer freebsd_triage 2024-09-13 15:32:52 UTC
(In reply to Charlie Li from comment #2)

I am not an academic users. We are heavy industry and use numpy serious computations. If something like this changes I need to trigger several engineers to review/validate/release a lot of Python software. They give the development pace, not the IT (me) department.
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2024-09-13 15:50:56 UTC
Reminder: a NumPy 2.0 migration guide is available at
https://numpy.org/doc/stable/numpy_2_0_migration_guide.html
Comment 5 Charlie Li freebsd_committer freebsd_triage 2024-09-13 16:41:54 UTC
(In reply to Michael Osipov from comment #3)
I understand where you're coming from, but at some point, your processes cannot become ports' problem in terms of medium-/long-term maintenance, especially when reflecting upstreams' current (stable) development and support focuses. There are other examples in ports where an upstream project released a new major breaking version, the port updated to such due to upstream's focus going forward, but the previous (unchanged) version copied to a different directory name with those consumers reflecting the change.
Comment 6 Tomasz "CeDeROM" CEDRO 2024-09-13 22:17:38 UTC
1. Will make things backward compatible on existing setups / scripts and will clearly distinguish new version. Other ports that require version 2 can just update dependencies to py-numpy2 right?

2. Would work like gnupg where security/gnupg is the current version 2 while security/gnupg1 is the old version 1. But it is a bit confusing.

3. There is also third option to use py-numpy1 for version 1, py-numpy2 for version 2, 
and py-numpy (metaport) for the most recent version. This seems both versatile and provides best compatibility no matter what version shows in future. It will break current setups though. This approach is used for instance with drm-kmod packages (drm-510-kmod for version 5.10, drm-515-kmod for version 5.15, drm-61-kmod for version 6.1, and just drm-kmod metaport for the latest one whatever it is and matches the system requirements). I like this approach most.

Only option 1 does not break existing setups. For option 2 or 3 change is only '1` added to the package name to maintain compatibilty.
Comment 7 Michael Osipov freebsd_committer freebsd_triage 2024-09-14 07:46:52 UTC
(In reply to Charlie Li from comment #5)

The process in this case is quite simple:
Create a new port, let it sift in, mark the old one as deprecated for a good amount of time, wait for reactions, remove.
Comment 8 Michael Osipov freebsd_committer freebsd_triage 2024-09-14 07:48:28 UTC
(In reply to Tomasz "CeDeROM" CEDRO from comment #6)

I would only go for option three if the ports tree requires it and dependent ports need it. Otherwise it cases too much work.
Comment 9 Tomasz "CeDeROM" CEDRO 2024-09-17 01:34:50 UTC
py-numpy1 seems to be in use and might be still in use in future for various reasons so it may be good to provide that package as well?
Comment 10 John Hein 2024-11-11 03:17:17 UTC
(In reply to Michael Osipov from comment #7)
I think this is a reasonable choice.  Add math/py-numpy2 for now allowing new users to start migrating.

And mark a future cutover date where math/py-numpy becomes based on 2.x (maybe a month or two).  At that time repo copy math/py-numpy to math/py-numpy1.  And ports that are still dependent on only numpy1 can update their dependency to start using that until they support numpy2.
Comment 11 Michael Osipov freebsd_committer freebsd_triage 2024-11-11 08:08:10 UTC
(In reply to John Hein from comment #10)

Reasonable, but one or two is way too short. How will you notify people? There is only UPDATING, but that is for those who use the ports tree. You need to have at least three to six months.
Comment 12 Rainer Hurling freebsd_committer freebsd_triage 2024-11-11 10:05:12 UTC
If I have understood correctly, NumPy versions 1.x and 2.x have to coexist in the ports tree for a while. 

Has anyone tried whether they can be installed at the same time (side by side) without conflicts?
Comment 13 John Hein 2024-11-11 15:54:53 UTC
(In reply to Michael Osipov from comment #11)
"... you need to have at least three to six months"

Whether that is an appropriate guideline depends on lots of factors that will likely be different in different organizations (among FreeBSD ports tree maintainers and the set of all downstream users).

One or two months gives some time, whereas comment 5 advocates zero.  I don't know if six months would be acceptable to ports tree needs - it's hard to juggle all the inter-dependencies of all the python ports, and things are moving fast away from distutils, for instance.  There's not a perfect answer, but I agree the FreeBSD ports tree updates should be balanced with consideration of ports tree juggling and for downstream out-of-ports-tree users.  And numpy1 would still be available after the cutover, so those downstream ports tree users that did not muster the resources to migrate to numpy2 "in time" would be able to switch to the numpy1 package until their in-house uses could be updated.

As far as out-of-band (out-of-ports-tree) notice goes, I would recommend using python@freebsd.org to communicate the plan that is settled on.  A wiki entry to capture the plan, and guide users through the migration would be useful as well.

I don't think a longer time window than a couple months would help much in many cases. Take for example, the py2->py3 update - not a perfect comparison, but lots of time passed to allow people to prepare for 2->3 update, and frequently it prompted procrastination.  I still run into things (e.g., in-house scripts & python libraries and other third party python-based dependencies not from the FreeBSD ports tree) that need 2to3 treatment.
Comment 14 John Hein 2024-11-11 16:32:36 UTC
(In reply to Rainer Hurling from comment #12)
"Has anyone tried whether they can be installed at the same time (side by side) without conflicts?"

The current math/py-numpy and the one based on 2.x proposed here do conflict.  Some options to support having two math/py-numpy* ports include the following:

 (a) Allow math/py-numpy1 (or math/py-numpy based on 1.x) and math/py-numpy2 (or math/py-numpy based on 2.x) to both exist as package options, but they conflict. So either one can be installed individually but both cannot be installed together.  When you have multiple dependent ports clamoring for different versions (especially all needing run time installation), this becomes intractable to install in the same environment.  But some packages use this strategy (like lang/cython and lang/cython3, for instance, which is usually only needed at build time).

 (b) Allow one of the flavors to install to an alternate namespace (e.g., site-packages/numpy1).

 (c) Install to a separate virtual environment.  This option is not currently supported by the ports tree python infrastructure.  So supporting this would be a big change.
Comment 15 Rainer Hurling freebsd_committer freebsd_triage 2024-11-11 16:39:52 UTC
(In reply to John Hein from comment #14)

Hi John,
Thank you for the detailed answer. I had feared such conflicts.

Since both NumPy versions are needed at the same time, at least for a probably longer transition phase in more complex installations, e.g. for GIS software such as with QGIS, SAGA GIS etc., variant (b) seems the safest to me.
Comment 16 Charlie Li freebsd_committer freebsd_triage 2024-11-11 16:47:06 UTC
(In reply to John Hein from comment #14)
(b) is technically not possible and technically incorrect. By renaming the subdirector(y/ies) of site-packages, you are actually messing up both the Python package metadata and the module import logic, such that *every* consumer has to be patched to reflect.

Upstream made it clear that numpy 1 is no longer supported.

(c) is somewhat out of scope for the ports tree itself, as jail(8) is our analogue.
Comment 17 John Hein 2024-11-11 16:51:27 UTC
(In reply to Rainer Hurling from comment #15)
"... variant (b) seems the safest to me."

I generally agree, although it may not be that simple.

But variant (a) isn't bad just to get numpy2 into the tree for now - for people to start using / investigating migration of existing code that uses numpy (along with the nice migration guide mentioned in comment 4).  This assumes we don't get a rush to update dependencies to point to numpy2 and quickly start hitting dependency hell.
Comment 18 John Hein 2024-11-11 16:55:30 UTC
(In reply to Charlie Li from comment #16)
"Upstream made it clear that numpy 1 is no longer supported."

Thanks, Charlie.

There are degrees of "not supported", of course.  Do you have a reference to the upstream discussion / notes on that topic?  It looks like 2.0 was only tagged in June 2024, so for downstream consumers, that's not a particularly long time, especially if they weren't paying attention in June (or before).
Comment 19 Charlie Li freebsd_committer freebsd_triage 2024-11-11 17:20:39 UTC
(In reply to John Hein from comment #18)
The 1.26.4 release notes state that "this is the last planned release in the 1.26 series." 1.26.5 was released in May only for a few bug fixes. Meanwhile upstream have been tracking consumers' compatibility with 2.x: https://github.com/numpy/numpy/issues/26191
Comment 20 Yuri Victorovich freebsd_committer freebsd_triage 2024-11-18 04:11:37 UTC
More and more Python packages require numpy-2.x

I've hit 3 such ports only today. The latest one is math/py-numpoly.
Cython fails with errors like:
> ./numpoly/cfunctions/cdispach.c:3108:13: error: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
>  3108 |   __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
>       |             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Such ports can't be updated until math/py-numpy is updated to 2.x
Comment 21 wen 2024-11-19 08:03:19 UTC
Created attachment 255297 [details]
Update numpy to 2.1.3

Update numpy to 2.1.3

the result of `make test`:
46842 passed, 1700 skipped, 2800 deselected, 33 xfailed, 6 xpassed, 21 warnings in 453.90s (0:07:33)
Comment 22 wen 2024-11-19 08:04:25 UTC
If nobody object, I shall import numpy2 as math/py-numpy2 in this week.
Comment 23 Charlie Li freebsd_committer freebsd_triage 2024-11-20 22:10:47 UTC
(In reply to wen from comment #22)
This port should be updated to 2.x with 1.x moved to a new port, especially considering upstream's efforts to move consumers away from 1.x. We also should not be encouraging continued use of 1.x either, so the port name should reflect such.

Note that some consumers currently in the tree already work with 2.x; they probably just need cataloguing.
Comment 24 wen 2024-11-21 01:31:27 UTC
I suggest another way to update numpy in our portstree:
i) copy math/py-numpy to math/py-numpy1
ii) update math/py-numpy to 2.1.3
iii) modify Mk/Uses/python.mk, define PYNUMPY to depends on math/py-numpy1 and add a define of PYNUMPY2

I believe this way shall result in less breakage than other ways.

Any suggestions ?
Comment 25 Charlie Li freebsd_committer freebsd_triage 2024-11-21 20:28:25 UTC
(In reply to wen from comment #24)
First two points are exactly what I was thinking. Third point, I think we should gradually deprecate ${PYNUMPY} in favour of the directly specifying the dependency line, but for now keep ${PYNUMPY} to point to math/py-numpy1. Those ports that are already safe for numpy 2.x can already switch to the direct dependency line.
Comment 26 commit-hook freebsd_committer freebsd_triage 2024-11-21 20:37:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0c610c4b35941436172bfede63e11a62454581b2

commit 0c610c4b35941436172bfede63e11a62454581b2
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2024-11-21 20:33:25 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2024-11-21 20:33:25 +0000

    devel/boost-python-libs: mark as safe for numpy 2.x

    Upstream commit included in devel/boost-libs/files. Switch away
    from ${PYNUMPY} to both catalogue and allow seamless transition
    when math/py-numpy 2.x is committed.

    While here, remove USES=python upper bound.

    With hat: python
    PR: 281470

 devel/boost-python-libs/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 27 wen 2024-11-22 01:17:33 UTC
Created attachment 255373 [details]
update math/py-numpy to 2.1.3

Important: Before apply this patch, please copy math/py-numpy to math/py-numpy1 and add py-numpy1 to math/Makefile.
Comment 28 wen 2024-11-22 01:20:49 UTC
(In reply to Charlie Li from comment #25)
Thank you!
Now I submitted a new patch and ask for a exp-run.
Comment 29 Antoine Brodin freebsd_committer freebsd_triage 2024-11-22 14:00:06 UTC
The patch is wrong or incomplete,  please provide a complete patch and verify that math/py-numpy and math/py-numpy1 have a different PKGBASE
Comment 30 Wen Heping freebsd_committer freebsd_triage 2024-11-23 13:15:28 UTC
Created attachment 255399 [details]
numpy-2.1.3p1.diff.txt

I regenerate the patch into one file, it include:
1) new port math/py-numpy1
2) add py-numpy1 to math/Makefile
3) modify Mk/Uses/python, make PYNUMPY depends on math/py-numpy1
4) Update math/py-numpy to 2.1.3
5) fix math/py-pandas, math/py-numexpr, math/py-bottleneck
Comment 31 Wen Heping freebsd_committer freebsd_triage 2024-11-23 13:17:44 UTC
(In reply to Antoine Brodin from comment #29)
I regenerate the patch again, now update math/py-numpy to 2.1.3 and set the PKGNAME to py3.11-numpy2.
Comment 32 Antoine Brodin freebsd_committer freebsd_triage 2024-11-25 08:13:51 UTC
The patch is still wrong:

science/py-HofstadterTools dependency on math/py-numpy@py311 has wrong PKGNAME of 'py311-numpy' but should be 'py311-numpy2'
science/py-access dependency on math/py-numpy@py311 has wrong PKGNAME of 'py311-numpy' but should be 'py311-numpy2'
science/py-cfgrib dependency on math/py-numpy@py311 has wrong PKGNAME of 'py311-numpy' but should be 'py311-numpy2'

etc etc.
Comment 33 Charlie Li freebsd_committer freebsd_triage 2024-11-25 23:48:10 UTC
(In reply to Wen Heping from comment #31)
We're not ready for an exp-run yet. PKGNAME on 2.x should remain the same without the 2 suffix, the only suffixed port should be of 1.x. Phab to follow.

Still need to mark which ports are already compatible with 2.x by changing *_DEPENDS. Some ports can still build and run under 1.x despite what pyproject.toml (but not their respective documentation) says; we would just temporarily run ${REINPLACE_CMD} until 2.x is committed, at which point they would need a rebuild for the ABI change anyway.
Comment 34 wen 2024-11-27 08:01:37 UTC
After multiple attempts, I understand that whether setting PKGBASE to 1 or 2, it requires manually modifying hundreds of ports. Given our current situation, I don't know when we will be able to complete this, next year or next next year.
(I shall mention PR/270510, where 20 months have passed and we still haven't been able to commit it. Charlie, I really appreciate and am grateful for your nice work, but I am an impatient person, sorry.) 

I believe the simplest and fastest way to use numpy2 is to add py-numpy2 port and set PKGBASE to 2, and then define PYNUMPY2 in python.mk. This approach will not break other ports.
Comment 35 wen 2024-12-19 02:16:58 UTC
I would close this PR and switch to:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279814
Comment 36 Charlie Li freebsd_committer freebsd_triage 2024-12-19 03:44:02 UTC
No. This is the correct approach. There are enough consumers that are compatible with both 1.x and 2.x, and again, 1.x should not be encouraged. I know there is some impatience but this has to be done correctly the first time or not at all.
Comment 37 wen 2024-12-19 07:29:37 UTC
(In reply to Charlie Li from comment #36)
In your correct way,  how long do you think it will take for us to use numpy2 ?
in 2024? 
or 2025?
or 2026? 
or after numpy3 release ? 
or never ? 

I shall do my best to help if anyone submit the correct patch in correct way.
Comment 38 Michael Osipov freebsd_committer freebsd_triage 2024-12-19 08:32:36 UTC
(In reply to wen from comment #37)

You need to put also company-internal code into consideration, it is not just about the ports which depend on numpy 1.x.
Comment 39 Mikhail T. 2025-04-13 16:25:43 UTC
Can we have this ticket resolved some time soon, please? BTW, 2.2.4 is currently the latest from the upstream :)

It seems like NumPy-1.x is not even working with Python-3.12, which, given the pace at which portmgr is obsoleting things, may soon become _the_ Python on FreeBSD...
Comment 40 Matthias Andree freebsd_committer freebsd_triage 2025-05-05 10:33:56 UTC

*** This bug has been marked as a duplicate of bug 279814 ***
Comment 41 Matthias Andree freebsd_committer freebsd_triage 2025-05-05 10:34:28 UTC
This is no strict duplicate, but https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279814 has a newer version of NumPy.
Comment 42 Charlie Li freebsd_committer freebsd_triage 2025-06-16 20:20:06 UTC
Reopening and duplicating the other one. numpy 1 will move to a new port first, leaving this open for 2. ${PYNUMPY} will follow to the new numpy 1 port but it is otherwise deprecated.
Comment 43 Charlie Li freebsd_committer freebsd_triage 2025-06-16 20:21:10 UTC
*** Bug 279814 has been marked as a duplicate of this bug. ***
Comment 44 commit-hook freebsd_committer freebsd_triage 2025-06-16 20:25:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b6d597a6ede0e8cc396ea4eb7650b07c89e1a46

commit 6b6d597a6ede0e8cc396ea4eb7650b07c89e1a46
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-06-16 20:24:14 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-16 20:24:14 +0000

    devel/boost-python-libs: reapply 0c610c4b35941436172bfede63e11a62454581b2

    PR: 281470
    Event: Kitchener-Waterloo Hackathon 202506

 devel/boost-python-libs/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 45 Vedran Miletic 2025-06-17 07:07:06 UTC
(In reply to Charlie Li from comment #42)
Thanks!
Comment 46 commit-hook freebsd_committer freebsd_triage 2025-07-23 16:40:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d655a6dbb7042f25e28e2d22b1ddcf79ad60c9ad

commit d655a6dbb7042f25e28e2d22b1ddcf79ad60c9ad
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-07-23 16:38:15 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-07-23 16:38:15 +0000

    devel/boost-python-libs: reapply 6b6d597a6ede0e8cc396ea4eb7650b07c89e1a46

    PR: 281470

 devel/boost-python-libs/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 47 Michael Osipov freebsd_committer freebsd_triage 2025-08-07 11:02:12 UTC
Please note that 2.3.0 now requires Python 3.11+
Comment 48 wen 2025-09-01 08:12:47 UTC
Created attachment 263379 [details]
Update to 2.3.2

Update to 2.3.2

The result of `make test`:
46848 passed, 2423 skipped, 2820 deselected, 33 xfailed, 5 xpassed, 20 warnings in 365.39s (0:06:05)
Comment 49 Mark Linimon freebsd_committer freebsd_triage 2025-10-12 02:40:53 UTC
I did not think PORTEPOCH could ever be removed?
Comment 50 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-16 04:56:08 UTC
The problem of numpy-2.x vs. numpy-1.x can be resolved in this way:

1. Upgrade math/py-numpy to 2.x
2. Create a fork of the old math/py-numpy as math/py-numpy1
3. Make (hack) math/py-numpy1 to install into some other location, for example /usr/local/lib/python3.11/numpy1/site-packages/numpy
4. All programs that still need numpy-1.x would have to use PYTHONPATH=/usr/local/lib/python3.11/numpy1:/usr/local/lib/python3.11
   This PYTHONPATH would make all imports of numpy to use numpy-1.x while numpy-2.x can be installed at the same time for other apps.

There can't be a mix of numpy libraries with contradictory requirements like numpy>=2 and numpy<2 in the same process. They should either all work with numpy-1.x or with numpy-2.x

This way it would be at least a path forward that would only put some pressure on apps requiring numpy-1.x, and apps running with numpy-2.x would be just normal.
Comment 51 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-17 02:14:38 UTC
Here is the list of ports that still require numpy-1.x even in their latest releases (18 ports):

> # Generated: 2025-10-16 17:23:53
> 
> Port Origin                              Port Ver        Upstream Ver    NumPy Restriction         Age (days)
> =====================================================================================================================
> astro/py-astlib                          0.11.10         0.12.1          <2,>=1.10                 226
> cad/py-pyfda                             0.1             0.9.5           <2.0                      298
> devel/py-apptools                        5.3.1           5.3.1           <2.0                      156
> devel/py-dateparser                      1.2.2           1.2.2           <2,>=1.19.3               112
> devel/py-jaxtyping                       0.2.35          0.3.3           <2                        15
> devel/py-ubelt                           1.4.0           1.4.0           <2.0.0,>=1.14.5           60
> misc/py-codecarbon                       3.0.4           3.0.7           <2.0.0                    8
> misc/py-facenet-pytorch                  2.5.3           2.6.0           <2.0.0,>=1.24.0           535
> misc/py-sigopt                           8.8.3           8.8.3           <2.0.0,>=1.15.0           535
> misc/urh                                 2.9.8           2.9.8           <2.0.0                    339
> science/py-GPy                           1.13.2          1.13.2          <2.0.0,>=1.7              450
> science/py-abipy                         0.9.8           0.9.8           <2.0.0                    399
> science/py-kliff                         0.4.4           1.0.1           <2.0                      188
> science/py-openpiv                       0.23.8          0.25.3          <2.0.0,>=1.21.6           546
> science/py-pymatgen                      2025.6.14       2025.10.7       <2,>=1.25.0               9
> science/py-qcelemental                   0.28.0          0.29.0          <2.0,>=1.26.1             276
> textproc/py-gensim                       4.3.3           4.3.3           <2.0,>=1.18.5             454
> x11-toolkits/py-superqt                  0.7.6           0.7.6           <2,>=1.19                 65
Comment 52 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-17 02:19:24 UTC
Sorry, the above list is not accurate.
At least pymatgen-2025.10.7 already supports numpy-2.x
Comment 53 Thierry Thomas freebsd_committer freebsd_triage 2025-10-17 06:57:03 UTC
As said in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281470#c4
most ports should be migratable to Numpy-2.x.
Comment 54 wen 2025-10-17 07:12:43 UTC
(In reply to Yuri Victorovich from comment #50)
I agree with you.

Would you file a patch for it and ask for a exp-run ?
We can mark those ports failed build with numpy2 BROKEN first, then fix it or deprecate it.
Comment 55 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-17 20:32:05 UTC
(In reply to wen from comment #54)

Yes, I would.
Comment 56 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 16:47:12 UTC
Created attachment 264696 [details]
Upgrade to numpy-2.3.2, keep numpy1 is a side folder

This patch does the following:
1. Upgrades math/py-numpy to 2.3.2 (based on the previous patch from Wen)
2. Keeps numpy1 as math/py-numpy1
3. math/py-numpy1 is installed into /usr/local/lib/python3.11/obsolete/site-packages/numpy
4. The script /usr/local/bin/use-numpy1 is provided for users who need to force numpy-1.x for when 'import numpy' is used.
5. Several other ports were upgraded or modified to make them build with the new math/py-numpy and math/py-numpy1

Testing that was performed:
1. Verified that /usr/local/bin/use-numpy1 works
2. Built all problematic ports (~19 of them) that have numpy-1.x requirements
3. Randomly built some other ports

All the above tests passed.

Some other ports might fail due to random/unexpected requirements in these ports.

Therefore requesting an exp-run.
Comment 57 Charlie Li freebsd_committer freebsd_triage 2025-10-18 16:59:30 UTC
Comment on attachment 264696 [details]
Upgrade to numpy-2.3.2, keep numpy1 is a side folder

${PYNUMPY} needs to stay on numpy1, the variable is to be deprecated.

CONFLICTS_INSTALL as shown results in conflicting with itself.

Unless I missed something, there should be more SHEBANG_FILES, namely under f2py unless they have been removed or fixed.

Not sure if the numpy.test() method is the most applicable for this situation.
Comment 58 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 17:25:04 UTC
(In reply to Charlie Li from comment #57)

> ${PYNUMPY} needs to stay on numpy1, the variable is to be deprecated.

What do you mean? All ports would break with numpy-2.x when they use ${PYNUMPY}.

Whatever needs to be deprecated should be done after the numpy upgrade to 2.x, not together with it.

Please do not entangle different issues when they are really unrelated.
Comment 59 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 17:39:01 UTC
Created attachment 264700 [details]
Upgrade to numpy-2.3.2, keep numpy1 in a side folder

Minor correction.
Comment 60 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 17:41:08 UTC
I suggest that this patch should be checked in once exp-run passes.

This numpy-2.x upgrade is dragging on for too long.
Comment 61 Antoine Brodin freebsd_committer freebsd_triage 2025-10-18 18:17:44 UTC
Can you flag the obsolete patches as obsolete?  this is a nightmare when you have to do an exp-run
Comment 62 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 18:25:31 UTC
(In reply to Antoine Brodin from comment #61)

I marked old ones as obsolete.
Comment 63 Charlie Li freebsd_committer freebsd_triage 2025-10-18 18:46:38 UTC
(In reply to Yuri Victorovich from comment #58)
No, any ports that still need numpy1 should continue to use ${PYNUMPY} during the transition; those that can work with version 2 should specify the port directly. Eventually all should specify the specific numpy port requested rather than using a variable that lost its purpose a long time ago. Deprecating this variable has *always* been part of this equation.
Comment 64 Charlie Li freebsd_committer freebsd_triage 2025-10-18 18:55:22 UTC
Comment on attachment 264700 [details]
Upgrade to numpy-2.3.2, keep numpy1 in a side folder

What is the minor correction you speak of?

Both ports can and should have USE_PYTHON=autoplist. There are no files or directories that are not already part of the Python package manifest as in the RECORD file.

Putting numpy1 under this `obsolote/site-packages` hierarchy is completely incorrect, the only acceptable hierarchy is the default one. The importlib process follows a defined search path and `obsolete/site-packages` is not one of them.
Comment 65 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 19:03:27 UTC
(In reply to Charlie Li from comment #63)

This is again a suggestion to mix PYNUMPY obsoletion with numpy-2.x with the upgrade.

These 2 issues **have nothing to do with each other**, and should be handled separately. Mixing PUNUMPY obsoletion in would increase the size of the patch by 100X+ because of the number of PUNUMPY references, without bringing any benefit.

I volunteer to provide the patch to obsolete PUNUMPY once the numpy-2.x upgrade is done.
Comment 66 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 19:07:28 UTC
(In reply to Charlie Li from comment #64)

No.

numpy-1.x has to be imported as 'import numpy', there is no way to keep it in the same location as numpy-2.x

Only <18 ports are affected by this. Some of them might even work with numpy-2.x, and if they wouldn't - they should use 'use-numpy2' and they would pick numpy1 instead.

This is a temporary fix until the offending ports are fixed.

There is nothing wrong with this patch.
Comment 67 Charlie Li freebsd_committer freebsd_triage 2025-10-18 19:13:32 UTC
(In reply to Yuri Victorovich from comment #66)
Correct, they cannot be installed concurrently at all, so stop pretending that they can with the `obsolete/site-packages` trickery. The upstream numpy issue tracking consumers linked from comment 19 has been closed as successful, with "only one didn't complete its support yet."

(In reply to Yuri Victorovich from comment #65)
No you will not.
Comment 68 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 19:27:26 UTC
(In reply to Charlie Li from comment #67)

You are absolutely wrong.

With my patch they can and are installed concurrently.
Different Python processes can choose which one is used.

The upstream issue https://github.com/numpy/numpy/issues/26191 missed many packages. I found many more than 1.


Again, there is nothing wrong with this patch.



> No you will not.

I don't know what this refers to.
Comment 69 Yuri Victorovich freebsd_committer freebsd_triage 2025-10-18 19:40:23 UTC
Let's put it this way:

Charlie, please provide reasons what would break or who would be hurt if my patch would be committed?

Be very specific. What exactly would break, and who exactly would suffer?
Comment 70 Thierry Thomas freebsd_committer freebsd_triage 2025-11-04 14:06:34 UTC
Upgrading science/py-netCDF4 requires numpy>=2.0.0.
Comment 71 Thierry Thomas freebsd_committer freebsd_triage 2025-12-29 20:17:22 UTC
textproc/py-wordcloud cannot be upgraded:
ERROR Missing dependencies:
        numpy>=2.0.0
Comment 72 Michael Osipov freebsd_committer freebsd_triage 2025-12-29 20:18:18 UTC
(In reply to Thierry Thomas from comment #71)

Is this a hard dependency? Sometimes it is soft...
Comment 73 Thierry Thomas freebsd_committer freebsd_triage 2025-12-29 21:12:36 UTC
(In reply to Michael Osipov from comment #72)

In pyproject.toml:

[build-system]
requires = ["setuptools", "Cython>=0.29.33", "setuptools_scm", "numpy>=2.0.0"]
Comment 74 Michael Osipov freebsd_committer freebsd_triage 2026-01-09 21:26:46 UTC
(In reply to Yuri Victorovich from comment #51)

Has this list change since?
Comment 75 p5B2EA84B3 2026-02-04 10:12:42 UTC
Importance: 	--- Affects Only Me ---meanwhile---> Affects many people

Also upstream is on NumPy 2.4.2 now
https://github.com/numpy/numpy/releases/tag/v2.4.2

This bug is blocking PR277826 please add to "Blocks".
Comment 76 Alastair Hogge 2026-03-02 22:49:40 UTC
Created attachment 268490 [details]
[PATCH] math/py-numpy: Update to 2.4.2

Patch only updates py-numpy.

* Update Options
* port{clippy|fmt|lint} house keeping

poudriere-testport math/py-numpy:
15_0-amd64-release: Pass
main-amd64-default: Pass
Comment 77 Alastair Hogge 2026-03-21 02:20:52 UTC
Created attachment 268970 [details]
[PATCH] math/py-numpy: Update to 2.4.3

poudriere-testport math/py-numpy:
15_0-amd64-release: Pass
main-amd64-default: Pass

> ============================================================================================== short test summary info ==============================================================================================
> FAILED distutils/tests/test_fcompiler.py::test_fcompiler_flags - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_gnu.py::TestG77Versions::test_g77_version - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_gnu.py::TestG77Versions::test_not_g77 - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_gnu.py::TestGFortranVersions::test_gfortran_version - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_gnu.py::TestGFortranVersions::test_not_gfortran - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_intel.py::TestIntelFCompilerVersions::test_32bit_version - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_intel.py::TestIntelEM64TFCompilerVersions::test_64bit_version - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> FAILED distutils/tests/test_fcompiler_nagfor.py::TestNagFCompilerVersions::test_version_match - TypeError: Compiler.__init__() got an unexpected keyword argument 'dry_run'
> 8 failed, 46911 passed, 1737 skipped, 2818 deselected, 32 xfailed, 2 xpassed, 2 warnings in 609.30s (0:10:09)
Comment 78 Antoine Brodin freebsd_committer freebsd_triage 2026-03-21 06:51:01 UTC
Remove the request for exp-run and assign back to python

Please request an exp-run when you have something production ready  (patch applies,  bulk -a starts without warning,  important consumers build and run fine..)
Comment 79 Charlie Li freebsd_committer freebsd_triage 2026-03-26 19:48:34 UTC
Comment on attachment 268970 [details]
[PATCH] math/py-numpy: Update to 2.4.3

The living version is at review D56094. No idea how I didn't have that on there already.

There will not be an option to disable BLAS. No matter how the option description is dressed to emphasise that the internal routines are slow as molasses, there will always be those who only see dependency reduction, then complain that numpy on FreeBSD is slow.

exp-run will not be necessary as numpy 1 will go into a new port, with existing consumers moved over. Then consumers can be tested individually for build and especially runtime.
Comment 80 Alastair Hogge 2026-03-27 23:46:48 UTC
(In reply to Charlie Li from comment #79)
> The living version is at review D56094. No idea how I didn't have that on there already.

What do you mean by "on there already"? This PR and the attached patches all predate the Review.

> There will not be an option to disable BLAS. No matter how the option description is dressed to emphasise that the internal routines are slow as molasses, there will always be those who only see dependency reduction, then complain that numpy on FreeBSD is slow.

Easily addressed.
Comment 81 Alastair Hogge 2026-03-29 06:06:15 UTC
Created attachment 269197 [details]
[PATCH] math/py-numpy: Update to 2.4.3

* Incorporate some changes from the totally bullshit "already there live patch"
* Remove PLAIN from BLAS/LAPACK OPTIONS

poudriere-testport math/py-numpy:
15_0-amd64-release: Pass
main-amd64-default: Pass
Comment 82 Max Brazhnikov freebsd_committer freebsd_triage 2026-03-30 13:08:48 UTC
(In reply to Alastair Hogge from comment #81)
I understand that many people are upset about the current state of Python ports, but please stay away from offensive language.

Folks, before requesting exp-run for Numpy update, I'd like to know your opinion on upgrade plan. Should we upgrade step by step, for example to Numpy-2.2 or 2.3 first, and then to the latest version? I'm concerned that some ports can not be updated to the latest releases due to outdated setuptools and may not support Numpy-2.4 yet.
Comment 83 Charlie Li freebsd_committer freebsd_triage 2026-03-30 22:21:45 UTC
(In reply to Max Brazhnikov from comment #82)
This will be updated directly to the latest version. I will copy the existing numpy 1 to a new port, switch all consumers to it, then update this port to the latest version. They will be separate commits but pushed together. Each individual consumer or small groups of them (like scipy consumers that may also individually specify numpy) can be tested for numpy 2 compatibility. Thus no large exp-run is needed.

Once again, note that upstream kept track of most numpy consumers for version 2 compatibility, which makes things easier for us: https://github.com/numpy/numpy/issues/26191
Comment 84 commit-hook freebsd_committer freebsd_triage 2026-04-03 19:02:19 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b32e5370ce76d6ea1394ea715665102b41e4e62

commit 8b32e5370ce76d6ea1394ea715665102b41e4e62
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-03-26 19:28:38 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-04-03 18:52:24 +0000

    math/py-numpy: update to 2.4.3

    Changelogs:
    - https://numpy.org/doc/stable/release.html
    - minor versions in commit logs

    PR: 281470
    Differential Revision: https://reviews.freebsd.org/D56094

 math/py-numpy/Makefile                             | 107 +++++++--------------
 math/py-numpy/distinfo                             |  10 +-
 math/py-numpy/files/patch-clang (gone)             |  13 ---
 .../patch-numpy-distutils-exec_command.py (gone)   |  11 ---
 ...ch-numpy-distutils-fcompiler-__init__.py (gone) |  11 ---
 .../patch-numpy-distutils-fcompiler-gnu.py (gone)  |  35 -------
 .../patch-numpy-distutils-system_info.py (gone)    |  22 -----
 .../files/patch-numpy_core_setup.py (gone)         |  19 ----
 ...mpy_core_src_common_npy__cpu__features.c (gone) |  47 ---------
 ...atch-numpy_distutils_mingw32ccompiler.py (gone) |  17 ----
 .../files/patch-numpy_f2py_f2py2e.py (gone)        |  18 ----
 .../files/patch-numpy_random_setup.py (gone)       |  23 -----
 math/py-numpy/files/patch-pyproject.toml (gone)    |  13 ---
 math/py-numpy/files/patch-swig44 (gone)            |  19 ----
 math/py-numpy/files/site.cfg (gone)                |  10 --
 15 files changed, 38 insertions(+), 337 deletions(-)
Comment 85 commit-hook freebsd_committer freebsd_triage 2026-04-03 19:02:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=91ac7f85c1f9c223478dbeea3da2dd04cec8d849

commit 91ac7f85c1f9c223478dbeea3da2dd04cec8d849
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-04-01 04:32:42 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-04-03 18:52:16 +0000

    math/py-numpy1: copy from math/py-numpy and rework

    - rework and fix OPTIONS for meson-python
    - fix build with free-threaded CPython

    PR: 281470

 math/Makefile                                      |  1 +
 math/py-numpy1/Makefile (new)                      | 72 ++++++++++++++++++++++
 math/py-numpy1/distinfo (new)                      |  5 ++
 math/py-numpy1/files/patch-clang (new)             | 13 ++++
 ...-numpy_core_include_numpy_ndarrayobject.h (new) | 11 ++++
 ...umpy_core_src_common_npy__cpu__features.c (new) | 47 ++++++++++++++
 .../files/patch-numpy_f2py_f2py2e.py (new)         | 18 ++++++
 math/py-numpy1/files/site.cfg (new)                | 10 +++
 math/py-numpy1/pkg-descr (new)                     | 11 ++++
 9 files changed, 188 insertions(+)
Comment 86 commit-hook freebsd_committer freebsd_triage 2026-04-03 19:02:25 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d4bd5ba72edc9f537254aeb1ff893399e3eb2278

commit d4bd5ba72edc9f537254aeb1ff893399e3eb2278
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-04-03 15:16:36 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-04-03 18:52:22 +0000

    math/py-numpy: switch all consumers to math/py-numpy1

    ...and bump PORTREVISIONs of consumers with hard RUN_DEPENDS

    PR: 281470

 Mk/Uses/python.mk                          |  2 +-
 archivers/py-bitshuffle/Makefile           |  5 +++--
 archivers/py-blosc2/Makefile               |  5 +++--
 astro/astrometry/Makefile                  |  2 +-
 astro/py-astlib/Makefile                   |  4 ++--
 astro/py-astroML/Makefile                  |  2 +-
 astro/py-astropy-healpix/Makefile          |  1 +
 astro/py-astropy-helpers/Makefile          |  2 +-
 astro/py-astropy/Makefile                  |  1 +
 astro/py-astroquery/Makefile               |  3 ++-
 astro/py-fitsio/Makefile                   |  5 +++--
 astro/py-jplephem/Makefile                 |  1 +
 astro/py-metpy/Makefile                    |  4 ++--
 astro/py-pyerfa/Makefile                   |  6 +++---
 astro/py-pykep/Makefile                    |  2 +-
 astro/py-pysofa/Makefile                   |  2 +-
 astro/py-pysolar/Makefile                  |  1 +
 astro/py-ro/Makefile                       |  4 ++--
 astro/py-skyfield/Makefile                 |  1 +
 astro/py-spktype01/Makefile                |  2 +-
 astro/py-spktype21/Makefile                |  2 +-
 astro/py-sunpy/Makefile                    |  1 +
 audio/beets/Makefile                       |  4 ++--
 audio/py-SoundFile/Makefile                |  1 +
 audio/py-aubio/Makefile                    |  2 +-
 audio/py-auditok/Makefile                  |  2 +-
 audio/py-essentia/Makefile                 |  1 +
 audio/py-librosa/Makefile                  |  2 +-
 audio/py-music21/Makefile                  |  1 +
 audio/py-pysndfile/Makefile                |  2 +-
 audio/py-resampy/Makefile                  |  2 +-
 audio/py-samplerate/Makefile               |  1 +
 audio/py-sounddevice/Makefile              |  2 +-
 audio/py-soxr/Makefile                     |  1 +
 audio/py-wavio/Makefile                    |  2 +-
 benchmarks/py-asv/Makefile                 |  2 +-
 biology/groopm/Makefile                    |  2 +-
 biology/py-PySCeS/Makefile                 |  2 +-
 biology/py-biom-format/Makefile            |  2 +-
 biology/py-biopython/Makefile              |  2 +-
 biology/py-deeptools/Makefile              |  2 +-
 biology/py-goatools/Makefile               |  2 +-
 biology/py-htseq/Makefile                  |  1 +
 biology/py-loompy/Makefile                 |  2 +-
 biology/py-macs2/Makefile                  |  2 +-
 biology/py-mrcfile/Makefile                |  2 +-
 biology/py-multiqc/Makefile                |  2 +-
 biology/py-ont-fast5-api/Makefile          |  2 +-
 biology/py-pydeseq2/Makefile               |  2 +-
 biology/py-scikit-bio/Makefile             |  2 +-
 cad/openscad-devel/Makefile                |  2 +-
 cad/openscad/Makefile                      |  2 +-
 cad/py-gdspy/Makefile                      |  3 ++-
 cad/py-gdstk/Makefile                      |  1 +
 cad/py-lcapy/Makefile                      |  4 ++--
 cad/py-pyfda/Makefile                      |  2 +-
 comms/apitran/Makefile                     |  2 +-
 comms/cubicsdr/Makefile                    |  2 +-
 comms/py-ModbusTCP/Makefile                |  4 ++--
 databases/arrow/Makefile                   |  2 +-
 databases/py-apache-arrow/Makefile         |  1 +
 databases/py-duckdb/Makefile               |  1 +
 databases/py-fastparquet/Makefile          |  5 +++--
 databases/py-pyarrow/Makefile              |  2 +-
 databases/py-qdrant-client/Makefile        |  3 ++-
 databases/py-redisvl/Makefile              |  1 +
 databases/py-tiledb/Makefile               |  5 +++--
 devel/boost-mpi-libs/Makefile              |  2 +-
 devel/boost-python-libs/Makefile           |  2 +-
 devel/nanobind/Makefile                    |  2 +-
 devel/py-aiortc/Makefile                   |  2 +-
 devel/py-anndata/Makefile                  |  3 ++-
 devel/py-array-api-compat/Makefile         |  3 ++-
 devel/py-array-api-strict/Makefile         |  3 ++-
 devel/py-asteval/Makefile                  |  2 +-
 devel/py-beartype/Makefile                 |  1 +
 devel/py-bullet3/Makefile                  |  2 +-
 devel/py-cclib/Makefile                    |  2 +-
 devel/py-cftime/Makefile                   |  1 +
 devel/py-cgen/Makefile                     |  3 ++-
 devel/py-cloudpickle/Makefile              |  2 +-
 devel/py-colorspacious/Makefile            |  2 +-
 devel/py-crick/Makefile                    |  2 +-
 devel/py-dask/Makefile                     |  3 ++-
 devel/py-dataclass-array/Makefile          |  3 ++-
 devel/py-datatest/Makefile                 |  4 ++--
 devel/py-devtools/Makefile                 |  2 +-
 devel/py-etils/Makefile                    |  5 +++--
 devel/py-ewah-bool-utils/Makefile          |  1 +
 devel/py-fastf1/Makefile                   |  2 +-
 devel/py-flatbuffers/Makefile              |  4 ++--
 devel/py-game/Makefile                     |  2 +-
 devel/py-hypothesis/Makefile               |  3 ++-
 devel/py-ipydatawidgets/Makefile           |  2 +-
 devel/py-ipympl/Makefile                   |  2 +-
 devel/py-ipyparallel/Makefile              |  2 +-
 devel/py-jep/Makefile                      |  2 +-
 devel/py-jupyter-rfb/Makefile              |  2 +-
 devel/py-lap/Makefile                      |  2 +-
 devel/py-mediapy/Makefile                  |  3 ++-
 devel/py-monty/Makefile                    |  1 +
 devel/py-mystic/Makefile                   |  3 ++-
 devel/py-numba/Makefile                    |  5 +++--
 devel/py-orjson/Makefile                   |  2 +-
 devel/py-ormsgpack/Makefile                |  2 +-
 devel/py-pint/Makefile                     |  3 ++-
 devel/py-pycocotools/Makefile              |  5 +++--
 devel/py-pycompilation/Makefile            |  2 +-
 devel/py-pyina/Makefile                    |  3 ++-
 devel/py-pykdtree/Makefile                 |  5 +++--
 devel/py-pyopencl/Makefile                 |  6 +++---
 devel/py-pyquil/Makefile                   |  2 +-
 devel/py-pytest-arraydiff/Makefile         |  1 +
 devel/py-pytest-lazy-fixture/Makefile      |  2 +-
 devel/py-pytest-regressions/Makefile       | 10 +++++-----
 devel/py-pytest/Makefile                   |  2 +-
 devel/py-pythran/Makefile                  |  1 +
 devel/py-pytools/Makefile                  |  6 +++---
 devel/py-qcs-sdk-python/Makefile           |  2 +-
 devel/py-qutip-qip/Makefile                |  1 +
 devel/py-rapidfuzz/Makefile                |  1 +
 devel/py-rpcq/Makefile                     |  2 +-
 devel/py-scikit-base/Makefile              |  3 ++-
 devel/py-scikit-build-core/Makefile        |  2 +-
 devel/py-shapely/Makefile                  |  5 +++--
 devel/py-sparse/Makefile                   |  3 ++-
 devel/py-thinc/Makefile                    |  6 +++---
 devel/py-thinc8/Makefile                   |  5 +++--
 devel/py-uproot/Makefile                   |  3 ++-
 devel/py-websockify/Makefile               |  3 ++-
 devel/py-xarray-einstats/Makefile          |  1 +
 devel/py-xarray-simlab/Makefile            |  2 +-
 devel/py-xarray/Makefile                   |  3 ++-
 devel/py-zarr/Makefile                     |  1 +
 devel/py-zfp/Makefile                      |  1 +
 devel/shiboken6/Makefile                   |  1 +
 devel/vitables/Makefile                    |  1 +
 editors/setzer/Makefile                    |  4 ++--
 filesystems/py-kerchunk/Makefile           |  3 ++-
 finance/freqtrade/Makefile                 |  2 +-
 finance/py-ffn/Makefile                    |  1 +
 finance/py-quantecon/Makefile              |  3 ++-
 finance/py-ta-lib/Makefile                 |  2 +-
 finance/py-yfinance/Makefile               |  3 ++-
 french/aster/Makefile                      |  2 +-
 games/endgame-singularity/Makefile         |  2 +-
 games/fretsonfire/Makefile                 |  2 +-
 games/krank/Makefile                       |  2 +-
 games/openage/Makefile                     |  2 +-
 graphics/blender/Makefile                  |  2 +-
 graphics/blender4/Makefile                 |  2 +-
 graphics/inkscape/Makefile                 |  4 ++--
 graphics/matplotlib-cpp/Makefile           |  2 +-
 graphics/mypaint/Makefile                  |  2 +-
 graphics/opencv/Makefile                   |  6 +++---
 graphics/piglit/Makefile                   |  2 +-
 graphics/py-PyOpenGL-accelerate/Makefile   |  5 +++--
 graphics/py-PyOpenGL/Makefile              |  2 +-
 graphics/py-agx-emulsion/Makefile          |  2 +-
 graphics/py-albucore/Makefile              |  1 +
 graphics/py-albumentations/Makefile        |  2 +-
 graphics/py-cartopy/Makefile               |  6 +++---
 graphics/py-colour-science/Makefile        |  4 ++--
 graphics/py-easyocr/Makefile               |  1 +
 graphics/py-face_recognition/Makefile      |  4 ++--
 graphics/py-fury/Makefile                  |  2 +-
 graphics/py-gdal/Makefile                  |  5 +++--
 graphics/py-geomdl/Makefile                |  4 ++--
 graphics/py-geosnap/Makefile               |  4 ++--
 graphics/py-gizeh/Makefile                 |  2 +-
 graphics/py-h3/Makefile                    |  6 +++---
 graphics/py-imagecodecs/Makefile           |  6 +++---
 graphics/py-imageio/Makefile               |  6 +++---
 graphics/py-imutils/Makefile               |  2 +-
 graphics/py-mapclassify/Makefile           |  4 ++--
 graphics/py-mayavi/Makefile                |  2 +-
 graphics/py-mgwr/Makefile                  |  4 ++--
 graphics/py-moderngl-window/Makefile       |  2 +-
 graphics/py-mpl-scatter-density/Makefile   |  2 +-
 graphics/py-osmnet/Makefile                |  4 ++--
 graphics/py-pandana/Makefile               |  6 +++---
 graphics/py-pandarm/Makefile               |  5 +++--
 graphics/py-pointpats/Makefile             |  3 ++-
 graphics/py-pycollada/Makefile             |  4 ++--
 graphics/py-pygeos/Makefile                |  5 +++--
 graphics/py-pyogrio/Makefile               |  4 ++--
 graphics/py-pyqtgraph/Makefile             |  2 +-
 graphics/py-pyrsgis/Makefile               |  2 +-
 graphics/py-pyvista/Makefile               |  2 +-
 graphics/py-qudida/Makefile                |  2 +-
 graphics/py-rasterio/Makefile              |  5 +++--
 graphics/py-rasterstats/Makefile           |  4 ++--
 graphics/py-rawpy/Makefile                 |  5 +++--
 graphics/py-scikit-image/Makefile          |  1 +
 graphics/py-tifffile/Makefile              |  3 ++-
 graphics/py-toyplot/Makefile               |  4 ++--
 graphics/py-urbanaccess/Makefile           |  4 ++--
 graphics/py-urbansim/Makefile              |  4 ++--
 graphics/py-vispy/Makefile                 |  1 +
 graphics/py-visvis/Makefile                |  2 +-
 graphics/py-zbar-py/Makefile               |  4 ++--
 graphics/qgis-ltr/Makefile                 |  2 +-
 graphics/qgis/Makefile                     |  2 +-
 graphics/qtqr/Makefile                     |  4 ++--
 graphics/vigra/Makefile                    |  1 +
 math/Imath/Makefile                        |  2 +-
 math/mathgl/Makefile                       |  2 +-
 math/nlopt/Makefile                        |  1 +
 math/py-CyLP/Makefile                      |  2 +-
 math/py-GridDataFormats/Makefile           |  2 +-
 math/py-POT/Makefile                       |  1 +
 math/py-Py-BOBYQA/Makefile                 |  1 +
 math/py-PySCIPOpt/Makefile                 |  1 +
 math/py-SQNomad/Makefile                   |  1 +
 math/py-algopy/Makefile                    |  2 +-
 math/py-arviz/Makefile                     |  1 +
 math/py-autograd/Makefile                  |  1 +
 math/py-awkward-cpp/Makefile               |  3 ++-
 math/py-awkward/Makefile                   |  3 ++-
 math/py-baycomp/Makefile                   |  2 +-
 math/py-bayesian-optimization/Makefile     |  4 ++--
 math/py-benford_py/Makefile                |  2 +-
 math/py-blis/Makefile                      |  5 +++--
 math/py-bottleneck/Makefile                |  5 +++--
 math/py-chaospy/Makefile                   |  2 +-
 math/py-clarabel/Makefile                  |  2 +-
 math/py-cma/Makefile                       |  3 ++-
 math/py-cmaes/Makefile                     |  3 ++-
 math/py-cmyt/Makefile                      |  2 +-
 math/py-colormath/Makefile                 |  4 ++--
 math/py-contourpy/Makefile                 |  1 +
 math/py-cvxpy/Makefile                     |  1 +
 math/py-cyipopt/Makefile                   |  2 +-
 math/py-deap/Makefile                      |  2 +-
 math/py-dgl/Makefile                       |  2 +-
 math/py-ducc0/Makefile                     |  2 +-
 math/py-ecos/Makefile                      |  2 +-
 math/py-emcee/Makefile                     |  1 +
 math/py-fastcluster/Makefile               |  5 +++--
 math/py-fenics-basix/Makefile              |  1 +
 math/py-flax/Makefile                      |  4 ++--
 math/py-fpylll/Makefile                    |  1 +
 math/py-fvcore/Makefile                    |  4 ++--
 math/py-gau2grid/Makefile                  |  2 +-
 math/py-gimmik/Makefile                    |  2 +-
 math/py-gym/Makefile                       |  4 ++--
 math/py-hdbscan/Makefile                   |  6 +++---
 math/py-hdmedians/Makefile                 |  2 +-
 math/py-hepstats/Makefile                  |  3 ++-
 math/py-heyoka/Makefile                    |  2 +-
 math/py-highspy/Makefile                   |  1 +
 math/py-hmmlearn/Makefile                  |  1 +
 math/py-iminuit/Makefile                   |  1 +
 math/py-iohexperimenter/Makefile           |  4 ++--
 math/py-isosurfaces/Makefile               |  2 +-
 math/py-jacobi/Makefile                    |  1 +
 math/py-jax/Makefile                       |  3 ++-
 math/py-keras-applications/Makefile        |  2 +-
 math/py-keras-preprocessing/Makefile       |  2 +-
 math/py-keras/Makefile                     |  1 +
 math/py-lmfit/Makefile                     |  1 +
 math/py-luminol/Makefile                   |  2 +-
 math/py-mapbox-earcut/Makefile             |  2 +-
 math/py-mathics/Makefile                   |  2 +-
 math/py-matplotlib/Makefile                |  1 +
 math/py-ml-dtypes/Makefile                 |  5 +++--
 math/py-modin/Makefile                     |  3 ++-
 math/py-ndindex/Makefile                   |  3 ++-
 math/py-ndonnx/Makefile                    |  3 ++-
 math/py-networkx/Makefile                  |  3 ++-
 math/py-nevergrad/Makefile                 |  4 ++--
 math/py-nlopt/Makefile                     |  1 +
 math/py-numba-stats/Makefile               |  1 +
 math/py-numexpr/Makefile                   |  5 +++--
 math/py-numpoly/Makefile                   |  2 +-
 math/py-numpy-groupies/Makefile            |  1 +
 math/py-numpy-stl/Makefile                 |  2 +-
 math/py-openTSNE/Makefile                  |  1 +
 math/py-pandas/Makefile                    |  5 +++--
 math/py-patsy/Makefile                     |  3 ++-
 math/py-pdal/Makefile                      |  2 +-
 math/py-petsc4py/Makefile                  |  2 +-
 math/py-point-annotator/Makefile           |  2 +-
 math/py-primme/Makefile                    |  2 +-
 math/py-pwlf/Makefile                      |  1 +
 math/py-py-find-1st/Makefile               |  1 +
 math/py-pygsl/Makefile                     |  6 +++---
 math/py-pygslodeiv2/Makefile               |  1 +
 math/py-pyhull/Makefile                    |  2 +-
 math/py-pymc3/Makefile                     |  2 +-
 math/py-pyneqsys/Makefile                  |  2 +-
 math/py-pynndescent/Makefile               |  2 +-
 math/py-pyodeint/Makefile                  |  2 +-
 math/py-pyodesys/Makefile                  |  2 +-
 math/py-pyreadstat/Makefile                |  3 ++-
 math/py-pyrr/Makefile                      |  2 +-
 math/py-pysym/Makefile                     |  2 +-
 math/py-pytensor/Makefile                  |  1 +
 math/py-python-fcl/Makefile                |  2 +-
 math/py-python-louvain/Makefile            |  2 +-
 math/py-python-picard/Makefile             |  2 +-
 math/py-pywavelets/Makefile                |  1 +
 math/py-qats/Makefile                      |  2 +-
 math/py-qdldl/Makefile                     |  2 +-
 math/py-quadprog/Makefile                  |  4 ++--
 math/py-resample/Makefile                  |  1 +
 math/py-rpy2/Makefile                      |  6 +++---
 math/py-rustworkx/Makefile                 |  2 +-
 math/py-rvlib/Makefile                     |  4 ++--
 math/py-scikit-fem/Makefile                |  3 ++-
 math/py-scikit-umfpack/Makefile            |  1 +
 math/py-scs/Makefile                       |  1 +
 math/py-seaborn/Makefile                   |  3 ++-
 math/py-seriate/Makefile                   |  2 +-
 math/py-slepc4py/Makefile                  |  2 +-
 math/py-snuggs/Makefile                    |  4 ++--
 math/py-spectral/Makefile                  |  1 +
 math/py-spglm/Makefile                     |  3 ++-
 math/py-spint/Makefile                     |  4 ++--
 math/py-splot/Makefile                     |  4 ++--
 math/py-spopt/Makefile                     |  3 ++-
 math/py-spox/Makefile                      |  3 ++-
 math/py-spreg/Makefile                     |  3 ++-
 math/py-statsmodels/Makefile               |  5 +++--
 math/py-sym/Makefile                       |  1 +
 math/py-theano/Makefile                    |  2 +-
 math/py-timple/Makefile                    |  2 +-
 math/py-torchsde/Makefile                  |  1 +
 math/py-umap-learn/Makefile                |  2 +-
 math/py-uncertainties/Makefile             |  1 +
 math/py-unyt/Makefile                      |  1 +
 math/py-vector/Makefile                    |  3 ++-
 math/py-yt/Makefile                        |  2 +-
 misc/caffe/Makefile                        |  2 +-
 misc/comfyui/Makefile                      |  1 +
 misc/mmdnn/Makefile                        |  2 +-
 misc/py-QSpectrumAnalyzer/Makefile         |  2 +-
 misc/py-SQCommon/Makefile                  |  1 +
 misc/py-SQImFil/Makefile                   |  1 +
 misc/py-SQSnobFit/Makefile                 |  1 +
 misc/py-SimpleSoapy/Makefile               |  2 +-
 misc/py-accelerate/Makefile                |  1 +
 misc/py-aider-chat/Makefile                |  3 ++-
 misc/py-bitsandbytes/Makefile              |  1 +
 misc/py-boost-histogram/Makefile           |  1 +
 misc/py-cmap/Makefile                      |  1 +
 misc/py-datasets/Makefile                  |  1 +
 misc/py-diffusers/Makefile                 |  1 +
 misc/py-evaluate/Makefile                  |  1 +
 misc/py-ezc3d/Makefile                     |  1 +
 misc/py-facenet-pytorch/Makefile           |  2 +-
 misc/py-fast-histogram/Makefile            |  2 +-
 misc/py-fastscapelib/Makefile              |  1 +
 misc/py-gguf/Makefile                      |  1 +
 misc/py-gymnasium/Makefile                 |  1 +
 misc/py-haystack_ai/Makefile               |  3 ++-
 misc/py-hist/Makefile                      |  1 +
 misc/py-histoprint/Makefile                |  2 +-
 misc/py-ipyfastscape/Makefile              |  2 +-
 misc/py-kokoro/Makefile                    |  2 +-
 misc/py-langchain-tests/Makefile           |  1 +
 misc/py-laspy/Makefile                     |  1 +
 misc/py-llama-cpp-python/Makefile          |  1 +
 misc/py-mffpy/Makefile                     |  2 +-
 misc/py-mmcv/Makefile                      |  2 +-
 misc/py-mmdet/Makefile                     |  2 +-
 misc/py-mmengine/Makefile                  |  2 +-
 misc/py-mmsegmentation/Makefile            |  2 +-
 misc/py-napari-svg/Makefile                |  3 ++-
 misc/py-napari/Makefile                    |  2 +-
 misc/py-npTDMS/Makefile                    |  1 +
 misc/py-numcodecs/Makefile                 |  2 +-
 misc/py-onnx/Makefile                      |  2 +-
 misc/py-onnxconverter-common/Makefile      |  4 ++--
 misc/py-openai-whisper/Makefile            |  2 +-
 misc/py-openai/Makefile                    |  1 +
 misc/py-openvdb/Makefile                   |  1 +
 misc/py-optuna/Makefile                    |  1 +
 misc/py-peft/Makefile                      |  2 +-
 misc/py-pkbar/Makefile                     |  2 +-
 misc/py-pyEDFlib/Makefile                  |  1 +
 misc/py-pymatreader/Makefile               |  1 +
 misc/py-pytorch-lightning/Makefile         |  2 +-
 misc/py-pytorch/Makefile                   |  2 +-
 misc/py-safetensors/Makefile               |  2 +-
 misc/py-sagemaker-core/Makefile            |  1 +
 misc/py-scikit-fusion/Makefile             |  2 +-
 misc/py-sentence-transformers/Makefile     |  1 +
 misc/py-soapy_power/Makefile               |  2 +-
 misc/py-spandrel/Makefile                  |  1 +
 misc/py-tflearn/Makefile                   |  2 +-
 misc/py-tflite-support/Makefile            |  2 +-
 misc/py-tflite/Makefile                    |  1 +
 misc/py-thermocouples_reference/Makefile   |  2 +-
 misc/py-timm-vis/Makefile                  |  2 +-
 misc/py-torch-geometric/Makefile           |  2 +-
 misc/py-torchsummary/Makefile              |  1 +
 misc/py-transformers/Makefile              |  1 +
 misc/py-tvm/Makefile                       |  1 +
 misc/py-uhi/Makefile                       |  1 +
 misc/py-wurlitzer/Makefile                 |  2 +-
 misc/py-xformers/Makefile                  |  2 +-
 misc/py-xgboost/Makefile                   |  1 +
 misc/urh/Makefile                          |  2 +-
 multimedia/pitivi/Makefile                 |  2 +-
 multimedia/py-moviepy/Makefile             |  4 ++--
 multimedia/py-pretty_midi/Makefile         |  2 +-
 multimedia/py-scenedetect/Makefile         |  1 +
 net-p2p/bazarr/Makefile                    |  6 +++---
 net/py-smart-open/Makefile                 |  2 +-
 print/py-glyphtools/Makefile               |  4 ++--
 science/agrum/Makefile                     |  2 +-
 science/bout++/Makefile                    |  4 ++--
 science/cantera/Makefile                   |  2 +-
 science/dftbplus/Makefile                  |  2 +-
 science/gnudatalanguage/Makefile           |  2 +-
 science/meep/Makefile                      |  2 +-
 science/paraview/Makefile                  |  2 +-
 science/pastix/Makefile                    |  2 +-
 science/precice/Makefile                   |  2 +-
 science/py-GPy/Makefile                    |  2 +-
 science/py-GPyOpt/Makefile                 |  2 +-
 science/py-HofstadterTools/Makefile        |  4 ++--
 science/py-MDAnalysis/Makefile             |  2 +-
 science/py-MDAnalysisTests/Makefile        |  2 +-
 science/py-OpenFermion/Makefile            |  2 +-
 science/py-PyFR/Makefile                   |  1 +
 science/py-SimpleSpectral/Makefile         |  2 +-
 science/py-abipy/Makefile                  |  2 +-
 science/py-access/Makefile                 |  4 ++--
 science/py-arbor/Makefile                  |  1 +
 science/py-asap3/Makefile                  |  1 +
 science/py-asdf/Makefile                   |  3 ++-
 science/py-ase/Makefile                    |  1 +
 science/py-cfgrib/Makefile                 |  3 ++-
 science/py-chainer-chemistry/Makefile      |  2 +-
 science/py-chainer/Makefile                |  2 +-
 science/py-cirq-core/Makefile              |  2 +-
 science/py-dftd4/Makefile                  |  1 +
 science/py-dimod/Makefile                  |  1 +
 science/py-dipy/Makefile                   |  1 +
 science/py-dwave-gate/Makefile             |  1 +
 science/py-dwave-inspector/Makefile        |  1 +
 science/py-dwave-optimization/Makefile     |  2 +-
 science/py-dwave-preprocessing/Makefile    |  1 +
 science/py-earthpy/Makefile                |  2 +-
 science/py-eccodes/Makefile                |  3 ++-
 science/py-esda/Makefile                   |  3 ++-
 science/py-geometer/Makefile               |  3 ++-
 science/py-geometric/Makefile              |  2 +-
 science/py-gpaw/Makefile                   |  2 +-
 science/py-gsd/Makefile                    |  2 +-
 science/py-h5json/Makefile                 |  2 +-
 science/py-h5py/Makefile                   |  5 +++--
 science/py-h5pyd/Makefile                  |  2 +-
 science/py-hiPhive/Makefile                |  1 +
 science/py-icet/Makefile                   |  1 +
 science/py-inequality/Makefile             |  3 ++-
 science/py-ipygany/Makefile                |  2 +-
 science/py-kimpy/Makefile                  |  1 +
 science/py-kinematics/Makefile             |  4 ++--
 science/py-kliff/Makefile                  |  2 +-
 science/py-libpysal/Makefile               |  3 ++-
 science/py-lifelines/Makefile              |  2 +-
 science/py-mdp/Makefile                    |  2 +-
 science/py-meshio/Makefile                 |  1 +
 science/py-mmtf-python/Makefile            |  2 +-
 science/py-mne/Makefile                    |  2 +-
 science/py-molmod/Makefile                 |  2 +-
 science/py-mpcontribs-client/Makefile      |  2 +-
 science/py-mplhep/Makefile                 |  2 +-
 science/py-ncrystal/Makefile               |  1 +
 science/py-neo/Makefile                    |  1 +
 science/py-netCDF4/Makefile                |  1 +
 science/py-nglview/Makefile                |  2 +-
 science/py-nibabel/Makefile                |  1 +
 science/py-openpiv/Makefile                |  1 +
 science/py-optking/Makefile                |  2 +-
 science/py-paramz/Makefile                 |  2 +-
 science/py-periodictable/Makefile          |  1 +
 science/py-phonopy/Makefile                |  1 +
 science/py-pnetcdf/Makefile                |  6 +++---
 science/py-pupynere/Makefile               |  4 ++--
 science/py-pyberny/Makefile                |  2 +-
 science/py-pygmo2/Makefile                 |  2 +-
 science/py-pyked/Makefile                  |  2 +-
 science/py-pymatgen/Makefile               |  1 +
 science/py-pymol/Makefile                  |  2 +-
 science/py-pynrrd/Makefile                 |  1 +
 science/py-pysal/Makefile                  |  3 ++-
 science/py-pyteomics/Makefile              |  6 +++---
 science/py-qcelemental/Makefile            |  1 +
 science/py-qiskit/Makefile                 |  2 +-
 science/py-qspin/Makefile                  |  2 +-
 science/py-quantities/Makefile             |  1 +
 science/py-rmsd/Makefile                   |  2 +-
 science/py-sarpy/Makefile                  |  3 ++-
 science/py-scikit-optimize/Makefile        |  3 ++-
 science/py-scikit-sparse/Makefile          |  2 +-
 science/py-scimath/Makefile                |  2 +-
 science/py-scipy/Makefile                  |  2 +-
 science/py-scoria/Makefile                 |  2 +-
 science/py-sdf/Makefile                    |  2 +-
 science/py-seekpath/Makefile               |  1 +
 science/py-segregation/Makefile            |  3 ++-
 science/py-segyio/Makefile                 |  2 +-
 science/py-sklearn-pandas/Makefile         |  4 ++--
 science/py-skrebate/Makefile               |  4 ++--
 science/py-spaghetti/Makefile              |  3 ++-
 science/py-spglib/Makefile                 |  1 +
 science/py-symfc/Makefile                  |  1 +
 science/py-tensorflow/Makefile             |  6 +++---
 science/py-tobler/Makefile                 |  3 ++-
 science/py-trainstation/Makefile           |  2 +-
 science/py-vedo/Makefile                   |  2 +-
 science/py-veusz/Makefile                  |  1 +
 science/pynn/Makefile                      |  2 +-
 science/rdkit/Makefile                     |  1 +
 science/tfel-edf/Makefile                  |  2 +-
 science/tfel/Makefile                      |  2 +-
 science/v_sim/Makefile                     |  1 +
 science/vmd/Makefile                       |  2 +-
 science/votca/Makefile                     |  2 +-
 security/caldera/Makefile                  |  4 ++--
 security/howdy/Makefile                    |  4 ++--
 textproc/py-elasticsearch6/Makefile        |  2 +-
 textproc/py-gensim/Makefile                |  2 +-
 textproc/py-langid/Makefile                |  2 +-
 textproc/py-petl/Makefile                  |  6 +++---
 textproc/py-rouge-score/Makefile           |  1 +
 textproc/py-sense2vec/Makefile             |  4 ++--
 textproc/py-spacy/Makefile                 |  6 +++---
 textproc/py-textdistance/Makefile          |  1 +
 textproc/py-textual-fastdatatable/Makefile |  3 ++-
 textproc/py-tokenizers/Makefile            |  2 +-
 textproc/py-wordcloud/Makefile             |  2 +-
 www/py-bokeh/Makefile                      |  2 +-
 www/py-folium/Makefile                     |  3 ++-
 www/py-quilt3/Makefile                     |  3 ++-
 www/py-sentinelhub/Makefile                |  3 ++-
 www/py-streamlit/Makefile                  |  3 ++-
 x11-toolkits/py-magicgui/Makefile          |  2 +-
 x11-toolkits/py-wxpython/Makefile          |  5 +++--
 x11/py-xdot/Makefile                       |  1 +
 544 files changed, 752 insertions(+), 522 deletions(-)
Comment 87 Charlie Li freebsd_committer freebsd_triage 2026-04-03 19:12:20 UTC
(In reply to commit-hook from comment #84)
For those only see these commit-hook comments, this was the last commit in the series.

It is also possible that I missed bumping a few ports that have the numpy RUN_DEPENDS gated in an default option.

Going to keep this open since there are many direct consumers that are nested, for example a scipy consumer that also specifies numpy in its dependencies, that need to be looked at and untangled. Reminder, exp-runs can only verify that something builds, which is does not mean anything when it comes to verifying runtime. Most direct consumers only specify numpy as a RUN_DEPENDS.

Once again, note that upstream kept track of most numpy consumers for version 2 compatibility: https://github.com/numpy/numpy/issues/26191
Comment 88 commit-hook freebsd_committer freebsd_triage 2026-04-03 20:06:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1912d150ac52993a0da6f5c68a485a6fd2a87f9d

commit 1912d150ac52993a0da6f5c68a485a6fd2a87f9d
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-04-03 20:01:01 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-04-03 20:01:01 +0000

    math/py-numpy1: bump more RUN_DEPENDS consumers

    These specify numpy indirectly using a different variable.

    PR: 281470

 biology/py-bx-python/Makefile          | 1 +
 biology/py-ete3/Makefile               | 2 +-
 cad/py-pygmsh/Makefile                 | 2 +-
 comms/nanovna-saver/Makefile           | 2 +-
 devel/cpp2py/Makefile                  | 2 +-
 devel/py-qutip/Makefile                | 2 +-
 finance/py-Nasdaq-Data-Link/Makefile   | 2 +-
 finance/py-exchange-calendars/Makefile | 1 +
 finance/py-investpy/Makefile           | 2 +-
 finance/py-pandas-ta/Makefile          | 2 +-
 math/py-ambit/Makefile                 | 2 +-
 math/py-diffcp/Makefile                | 1 +
 math/py-faiss/Makefile                 | 1 +
 math/py-fsph/Makefile                  | 1 +
 math/py-ipyopt/Makefile                | 1 +
 math/py-libceed/Makefile               | 2 +-
 math/py-linearmodels/Makefile          | 2 +-
 math/py-minorminer/Makefile            | 1 +
 math/py-mnnpy/Makefile                 | 2 +-
 math/py-or-tools/Makefile              | 2 +-
 math/py-osqp/Makefile                  | 2 +-
 math/py-pyFFTW/Makefile                | 2 +-
 math/py-slepc4py/Makefile              | 2 +-
 math/py-ssm/Makefile                   | 2 +-
 misc/adios2/Makefile                   | 2 +-
 misc/py-apache-beam/Makefile           | 2 +-
 misc/py-detecta/Makefile               | 2 +-
 misc/py-lightgbm/Makefile              | 1 +
 misc/py-shap2/Makefile                 | 2 +-
 misc/py-torchao/Makefile               | 1 +
 misc/py-torchmetrics/Makefile          | 2 +-
 misc/py-torchvision/Makefile           | 1 +
 science/py-OpenMC/Makefile             | 2 +-
 science/py-PyNE/Makefile               | 2 +-
 science/py-arch/Makefile               | 1 +
 science/py-atomium/Makefile            | 2 +-
 science/py-boutdata/Makefile           | 1 +
 science/py-boututils/Makefile          | 1 +
 science/py-chempy/Makefile             | 2 +-
 science/py-dwave-cloud-client/Makefile | 1 +
 science/py-dwave-hybrid/Makefile       | 1 +
 science/py-dwave-networkx/Makefile     | 1 +
 science/py-dwave-samplers/Makefile     | 1 +
 science/py-dwave-system/Makefile       | 1 +
 science/py-libgetar/Makefile           | 2 +-
 science/py-oddt/Makefile               | 2 +-
 science/py-penaltymodel/Makefile       | 1 +
 science/py-phono3py/Makefile           | 1 +
 science/py-pyprecice/Makefile          | 2 +-
 science/py-pyqubo/Makefile             | 2 +-
 science/py-pyscf/Makefile              | 2 +-
 science/py-scikit-fuzzy/Makefile       | 2 +-
 science/py-thewalrus/Makefile          | 2 +-
 science/salome-kernel/Makefile         | 2 +-
 science/ttk/Makefile                   | 2 +-
 science/wwplot/Makefile                | 1 +
 textproc/py-pdf2docx/Makefile          | 2 +-
 57 files changed, 57 insertions(+), 36 deletions(-)
Comment 89 Dima Panov freebsd_committer freebsd_triage 2026-04-03 22:36:37 UTC
And it make all porttree borked!
Looks like some patches lost during rename?

Some fast examples:


==> math/Imath:
FAILED: [code=1] src/python/PyImathNumpy/CMakeFiles/imathnumpy.dir/imathnumpymodule.cpp.o
/usr/local/libexec/ccache/c++ -DBOOST_ALLOW_DEPRECATED_HEADERS -DBOOST_CONTAINER_DYN_LINK -DBOOST_CONTAINER_NO_LIB -DBOOST_GRAPH_DYN_LINK -DBOOST_GRAPH_NO_LIB -DBOOST_PYTHON_DYN_LINK -DBOOST_PYTHON_NO_L
IB -Dimathnumpy_EXPORTS -I/wrkdirs/usr/ports/math/Imath/work/.build/src/python/PyImathNumpy -I/wrkdirs/usr/ports/math/Imath/work/Imath-3.2.2/src/python/PyImathNumpy -I/wrkdirs/usr/ports/math/Imath/work/
.build/config -I/wrkdirs/usr/ports/math/Imath/work/Imath-3.2.2/src/python/PyImath -I/wrkdirs/usr/ports/math/Imath/work/Imath-3.2.2/src/Imath -isystem /usr/local/include/python3.11 -isystem /usr/local/in
clude -isystem /usr -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DNDEBUG -fPIC -MD -MT src/python/PyImathNumpy/CMakeFiles/imathnump
y.dir/imathnumpymodule.cpp.o -MF src/python/PyImathNumpy/CMakeFiles/imathnumpy.dir/imathnumpymodule.cpp.o.d -o src/python/PyImathNumpy/CMakeFiles/imathnumpy.dir/imathnumpymodule.cpp.o -c /wrkdirs/usr/po
rts/math/Imath/work/Imath-3.2.2/src/python/PyImathNumpy/imathnumpymodule.cpp
/wrkdirs/usr/ports/math/Imath/work/Imath-3.2.2/src/python/PyImathNumpy/imathnumpymodule.cpp:16:10: fatal error: 'numpy/arrayobject.h' file not found
   16 | #include <numpy/arrayobject.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
1 error generated.


==> science/py-h5py:
running build_ext
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/numpy/core/__init__.py", line 24, in <module>
    from . import multiarray
  File "/usr/local/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/usr/local/lib/python3.11/site-packages/numpy/core/overrides.py", line 8, in <module>
    from numpy.core._multiarray_umath import (
ImportError: /usr/local/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311.so: Undefined symbol "feraiseexcept"

==> science/py-scipy:
setup.py:390: UserWarning: Unrecognized setuptools command ('config --fcompiler=gnu95'), proceeding with generating Cython sources and expanding templates
  warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Error: 'numpy' must be installed before running the build.
Comment 90 Charlie Li freebsd_committer freebsd_triage 2026-04-03 22:49:56 UTC
(In reply to Dima Panov from comment #89)
scipy was also updated, most notably does not use setuptools/disutils to build anymore. So setup.py being executed is wrong.

The removed patches became no-ops when the original port was switched to USE_PYTHON=pep517 meson-python build backend. Apart from that and making OPTIONS work properly, math/py-numpy1 is the same as before.

In conclusion I can't reproduce any of these.
Comment 91 Dima Panov freebsd_committer freebsd_triage 2026-04-03 23:00:50 UTC
(In reply to Charlie Li from comment #90)
at least Math cannot find include path which tells us "something changed in build system  and not provided right paths anymore"
Comment 92 Dima Panov freebsd_committer freebsd_triage 2026-04-03 23:20:43 UTC
(In reply to Charlie Li from comment #90)
devel/boost-python-lisb is also broken now, skips building libbest_numpy* libraries
Comment 93 Dima Panov freebsd_committer freebsd_triage 2026-04-03 23:26:38 UTC
(In reply to Charlie Li from comment #90)

Updated spicy still fails:


Run-time dependency threads found: YES
numpy-config found: NO
Run-time dependency numpy found: NO (tried pkgconfig and config-tool)
Message: f2py free-threading disabled; need numpy >=2.1.0.
Message: See https://github.com/mesonbuild/meson/issues/14651

../scipy/meson.build:65:17: ERROR: Command `/usr/local/bin/python3.11 -c 'import os
os.chdir(os.path.join("..", "tools"))
import numpy as np
try:
  incdir = os.path.relpath(np.get_include())
except Exception:
  incdir = np.get_include()
print(incdir)
  '` failed with status 1.

A full log can be found at /wrkdirs/usr/ports/science/py-scipy/work-py311/scipy-1.17.1/.mesonpy-m6jmdw6s/meson-logs/meson-log.txt

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/science/py-scipy
build of science/py-scipy | py311-scipy-1.17.1,1 ended at Sat Apr  4 02:24:13 MSK 2026
Comment 94 Charlie Li freebsd_committer freebsd_triage 2026-04-03 23:37:05 UTC
I compared the package contents from math/py-numpy 1.26.4_12 (version immediately prior to this commit series) to current math/py-numpy1:

--- fbsd-numpy1	2026-04-03 19:30:04.273594000 -0400
+++ numpy1	2026-04-03 19:31:20.245374000 -0400
@@ -195,7 +195,6 @@
 /usr/local/lib/python3.12/site-packages/numpy/core/tests/examples/cython/setup.py
 /usr/local/lib/python3.12/site-packages/numpy/core/tests/examples/limited_api/limited_api.c
 /usr/local/lib/python3.12/site-packages/numpy/core/tests/examples/limited_api/setup.py
-/usr/local/lib/python3.12/site-packages/numpy/core/tests/examples/temp
 /usr/local/lib/python3.12/site-packages/numpy/core/tests/test__exceptions.py
 /usr/local/lib/python3.12/site-packages/numpy/core/tests/test_abc.py
 /usr/local/lib/python3.12/site-packages/numpy/core/tests/test_api.py
@@ -262,139 +261,6 @@
 /usr/local/lib/python3.12/site-packages/numpy/core/umath_tests.py
 /usr/local/lib/python3.12/site-packages/numpy/ctypeslib.py
 /usr/local/lib/python3.12/site-packages/numpy/ctypeslib.pyi
-/usr/local/lib/python3.12/site-packages/numpy/distutils/__init__.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/__init__.pyi
-/usr/local/lib/python3.12/site-packages/numpy/distutils/_shell_utils.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/armccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/ccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/ccompiler_opt.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_asimd.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_asimddp.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_asimdfhm.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_asimdhp.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx2.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_clx.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_cnl.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_icl.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_knl.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_knm.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_skx.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_spr.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512_spr.c.orig
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512cd.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_avx512f.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_f16c.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_fma3.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_fma4.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_neon.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_neon_fp16.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_popcnt.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_sse.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_sse2.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_sse3.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_sse41.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_sse42.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_ssse3.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vsx.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vsx2.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vsx3.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vsx4.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vx.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vxe.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_vxe2.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/cpu_xop.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/extra_avx512bw_mask.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/extra_avx512dq_mask.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/extra_avx512f_reduce.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/extra_vsx3_half_double.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/extra_vsx4_mma.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/extra_vsx_asm.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/checks/test_flags.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/__init__.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/autodist.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/bdist_rpm.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/build.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/build_clib.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/build_ext.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/build_py.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/build_scripts.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/build_src.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/config.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/config_compiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/develop.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/egg_info.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/install.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/install_clib.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/install_data.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/install_headers.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/command/sdist.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/conv_template.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/core.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/cpuinfo.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/exec_command.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/exec_command.py.orig
-/usr/local/lib/python3.12/site-packages/numpy/distutils/extension.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/__init__.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/__init__.py.orig
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/absoft.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/arm.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/compaq.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/environment.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/fujitsu.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/g95.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/gnu.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/gnu.py.bak
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/gnu.py.orig
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/hpux.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/ibm.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/intel.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/lahey.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/mips.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/nag.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/none.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/nv.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/pathf95.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/pg.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/sun.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fcompiler/vast.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/from_template.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/fujitsuccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/intelccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/lib2def.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/line_endings.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/log.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/mingw/gfortran_vs2003_hack.c
-/usr/local/lib/python3.12/site-packages/numpy/distutils/mingw32ccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/mingw32ccompiler.py.orig
-/usr/local/lib/python3.12/site-packages/numpy/distutils/misc_util.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/msvc9compiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/msvccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/npy_pkg_config.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/numpy_distribution.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/pathccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/setup.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/system_info.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/system_info.py.bak
-/usr/local/lib/python3.12/site-packages/numpy/distutils/system_info.py.orig
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/__init__.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_build_ext.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_ccompiler_opt.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_ccompiler_opt_conf.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_exec_command.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_fcompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_fcompiler_gnu.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_fcompiler_intel.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_fcompiler_nagfor.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_from_template.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_log.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_mingw32ccompiler.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_misc_util.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_npy_pkg_config.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_shell_utils.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/tests/test_system_info.py
-/usr/local/lib/python3.12/site-packages/numpy/distutils/unixccompiler.py
 /usr/local/lib/python3.12/site-packages/numpy/doc/__init__.py
 /usr/local/lib/python3.12/site-packages/numpy/doc/constants.py
 /usr/local/lib/python3.12/site-packages/numpy/doc/ufuncs.py
@@ -508,7 +374,6 @@
 /usr/local/lib/python3.12/site-packages/numpy/f2py/tests/src/string/gh25286_bc.pyf
 /usr/local/lib/python3.12/site-packages/numpy/f2py/tests/src/string/scalar_string.f90
 /usr/local/lib/python3.12/site-packages/numpy/f2py/tests/src/string/string.f
-/usr/local/lib/python3.12/site-packages/numpy/f2py/tests/src/temp
 /usr/local/lib/python3.12/site-packages/numpy/f2py/tests/src/value_attrspec/gh21665.f90
 /usr/local/lib/python3.12/site-packages/numpy/f2py/tests/test_abstract_interface.py
 /usr/local/lib/python3.12/site-packages/numpy/f2py/tests/test_array_from_pyobj.py

The failures to find/detect numpy in your examples suggest a hack or other modification in your local tree that is now wrong. At least for boost-python, I've been building it with numpy 2 (ie current math/py-numpy) for quite some time without any issue. The entire distutils directory is not present in numpy 2 at all, so even if you test with numpy 2, you will get these exact errors until you figure out your local tree issue.
Comment 95 Charlie Li freebsd_committer freebsd_triage 2026-04-03 23:52:02 UTC
(In reply to Charlie Li from comment #94)
I see what happened now:

A CLI tool numpy-config was introduced for numpy 2, and consumers check for and execute this tool to fill out their numpy includes and such. If numpy-config is not found, consumers' detection logic will fall back to distutils.

I will fix this.
Comment 96 commit-hook freebsd_committer freebsd_triage 2026-04-04 01:51:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=28081ef83218b02fe882f736d7935ea05bb23d68

commit 28081ef83218b02fe882f736d7935ea05bb23d68
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-04-04 01:47:26 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-04-04 01:47:26 +0000

    math/py-numpy1: backport configtool/pkg-config file from numpy 2

    Traditionally the way to query for the numpy C API has been through
    distutils/setuptools, but the use of setuptools beyond a PEP-517
    build backend is increasingly discouraged. numpy 2 introduced
    numpy-config and a pkg-config file to allow consumer build systems
    to better support the use of numpy as a dependency.

    Based on: https://github.com/numpy/numpy/commit/2634f803313f349170c09606d3cc619accd72247

    Reported by: fluffy
    PR: 281470

 math/py-numpy1/Makefile                            |  1 +
 .../files/patch-numpy___configtool.py (new)        | 42 +++++++++++++++++++++
 .../files/patch-numpy_core_meson.build (new)       | 26 +++++++++++++
 .../files/patch-numpy_core_numpy.pc.in (new)       | 10 +++++
 .../py-numpy1/files/patch-numpy_lib_utils.py (new) | 35 +++++++++++++++++
 math/py-numpy1/files/patch-numpy_meson.build (new) | 10 +++++
 .../patch-numpy_tests_test__configtool.py (new)    | 44 ++++++++++++++++++++++
 math/py-numpy1/files/patch-pyproject.toml (new)    | 21 +++++++++++
 8 files changed, 189 insertions(+)
Comment 97 Tao Zhen 2026-04-04 19:02:03 UTC
(In reply to Charlie Li from comment #95)
It doesn't build for me. It built before the copy. I have blas and openblas installed from source.

# make build
===>  License BSD3CLAUSE accepted by the user
===>   py311-numpy1-1.26.4_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py311-numpy1-1.26.4_1 for building
===>  Extracting for py311-numpy1-1.26.4_1
=> SHA256 Checksum OK for numpy-1.26/numpy-1.26.4.tar.gz.
=> SHA256 Checksum OK for numpy-1.26/numpy-html.zip.
===>  Patching for py311-numpy1-1.26.4_1
===>  Applying FreeBSD patches for py311-numpy1-1.26.4_1 from /usr/ports/math/py-numpy1/files
===>   py311-numpy1-1.26.4_1 depends on package: py311-meson-python>=0.15.0 - found
===>   py311-numpy1-1.26.4_1 depends on executable: gfortran14 - found
===>   py311-numpy1-1.26.4_1 depends on package: pkgconf>=1.3.0_1 - found
===>   py311-numpy1-1.26.4_1 depends on package: py311-cython>=3.2.4 - found
===>   py311-numpy1-1.26.4_1 depends on file: /usr/local/bin/python3.11 - found
===>   py311-numpy1-1.26.4_1 depends on file: /usr/local/bin/as - found
===>   py311-numpy1-1.26.4_1 depends on package: py311-build>=0 - found
===>   py311-numpy1-1.26.4_1 depends on package: py311-installer>=0 - found
===>   py311-numpy1-1.26.4_1 depends on shared library: libopenblas.so - found (/usr/local/lib/libopenblas.so)
===>  Configuring for py311-numpy1-1.26.4_1
===>  Building for py311-numpy1-1.26.4_1
* Getting build dependencies for wheel...
* Building wheel...
+ /usr/local/bin/python3.11 /usr/ports/math/py-numpy1/work-py311/numpy-1.26.4/vendored-meson/meson/meson.py setup /usr/ports/math/py-numpy1/work-py311/numpy-1.26.4 /usr/ports/math/py-numpy1/work-py311/numpy-1.26.4/.mesonpy-4vk7nycf -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dallow-noblas=false -Dblas=openblas -Dlapack=openblas --native-file=/usr/ports/math/py-numpy1/work-py311/numpy-1.26.4/.mesonpy-4vk7nycf/meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: /usr/ports/math/py-numpy1/work-py311/numpy-1.26.4
Build dir: /usr/ports/math/py-numpy1/work-py311/numpy-1.26.4/.mesonpy-4vk7nycf
Build type: native build
Project name: NumPy
Project version: 1.26.4
C compiler for the host machine: cc (clang 19.1.7 "FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)")
C linker for the host machine: cc ld.lld 19.1.7
C++ compiler for the host machine: c++ (clang 19.1.7 "FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)")
C++ linker for the host machine: c++ ld.lld 19.1.7
Cython compiler for the host machine: cython (cython 3.2.4)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/usr/local/bin/python3.11)
Found pkg-config: /usr/local/bin/pkg-config (2.4.3)
Run-time dependency python found: YES 3.11
Has header "Python.h" with dependency python-3.11: YES 
Compiler for C supports arguments -fno-strict-aliasing: YES 
Compiler for C supports arguments -ftrapping-math: YES 
Test features "SSE SSE2 SSE3" : Supported 
Test features "SSSE3" : Supported 
Test features "SSE41" : Supported 
Test features "POPCNT" : Supported 
Test features "SSE42" : Supported 
Test features "AVX" : Supported 
Test features "F16C" : Supported 
Test features "FMA3" : Supported 
Test features "AVX2" : Supported 
Test features "AVX512F" : Supported 
Test features "AVX512CD" : Supported 
Test features "AVX512_KNL" : Unsupported due to Arguments "-msse, -msse2, -msse3, -mssse3, -msse4.1, -mpopcnt, -msse4.2, -mavx, -mf16c, -mfma, -mavx2, -mno-mmx, -mavx512f, -mavx512cd, -mavx512er, -mavx512pf" are not supported
Test features "AVX512_KNM" : Unsupported due to Implied feature "AVX512_KNL" is not supported
Test features "AVX512_SKX" : Supported 
Test features "AVX512_CLX" : Supported 
Test features "AVX512_CNL" : Supported 
Test features "AVX512_ICL" : Supported 
Test features "AVX512_SPR" : Supported 
Configuring npy_cpu_dispatch_config.h using configuration
Message: 
CPU Optimization Options
  baseline:
    Requested : min
    Enabled   : SSE SSE2 SSE3
  dispatch:
    Requested : max -xop -fma4
    Enabled   : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL AVX512_SPR

Library m found: YES
Run-time dependency scipy-openblas found: NO (tried pkgconfig)
Found CMake: /usr/local/bin/cmake (3.31.10)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency openblas found: NO (tried pkgconfig, pkgconfig, pkgconfig and system)

../numpy/meson.build:174:4: ERROR: Problem encountered: No BLAS library detected! Install one, or use the `allow-noblas` build option (note, this may be up to 100x slower for some linear algebra operations).

A full log can be found at /usr/ports/math/py-numpy1/work-py311/numpy-1.26.4/.mesonpy-4vk7nycf/meson-logs/meson-log.txt

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

Stop.
make[1]: stopped making "/usr/ports/math/py-numpy1/work-py311/.build_done.numpy._usr_local" in /usr/ports/math/py-numpy1
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/math/py-numpy1
Comment 98 Charlie Li freebsd_committer freebsd_triage 2026-04-04 20:28:21 UTC
(In reply to Tao Zhen from comment #97)
Please remove cmake from your environment and try again. meson is probably preferring cmake for dependency detection over pkg-config, and it looks like cmake is not executing properly here.

This part is unspoken, but building all Python packages in a live environment, ie without isolation like jails (eg poudriere), Python virtual environments, etc, is not supported or a good idea.
Comment 99 Alastair Hogge 2026-04-05 01:34:56 UTC
(In reply to commit-hook from comment #96)
Why is there no OPENMP option?
Comment 100 Yuri Victorovich freebsd_committer freebsd_triage 2026-04-05 01:51:11 UTC
Why all ports are on py-numpy1 now? Almost all of them support numpy-2.x

What is the path forward to upgrade to numpy-2.x?

numpy-1.x and numpy-2.x can't be present simultaneously.
For this reason ports can't be switched to numpy-2.x one by one.
They should all be switched together.

Please revert this commit.
Comment 101 Alastair Hogge 2026-04-05 02:24:56 UTC
(In reply to Yuri Victorovich from comment #100)
+1
Comment 102 Charlie Li freebsd_committer freebsd_triage 2026-04-05 02:55:33 UTC
Once again, this is not a vote, please cease making comments that look like such. This commit series will not be reverted.

This step was necessary because there were enough bickering over why numpy 2 was not available for so long, so numpy 2 is now made available. The publicly available ports tree still has to be buildable as the process of reconciling versions of consumers known and certified compatible with numpy 2 is ongoing. There was bickering about even that before. I don't plan on keeping numpy1 available forever, as it is EOL after all.

Only 128 consumers are tracked in https://github.com/numpy/numpy/issues/26191 but we list over 200 build consumers and approaching 600 run consumers, some of which are both. It is also possible that some ports have a stale numpy dependency listing when they don't use numpy at all. The path forward is to start a new PR with a phab review that changes those 128 consumers we have in our tree to numpy 2, and start checking consumers (and possibly other dependencies) from them.
Comment 103 Yuri Victorovich freebsd_committer freebsd_triage 2026-04-05 03:05:54 UTC
(In reply to Charlie Li from comment #102)

There is no path forward to numpy-2.x this way.

In November the exp-run proved that there was only a small handful of ports that required numpy-1.x. They should just be removed and math/py-numpy should be updated to 2.x

The list from GitHub that you mention isn't correct and doesn't matter. exp-run results is an experimental point proving lack of numpy-1.x only ports.
Comment 104 Charlie Li freebsd_committer freebsd_triage 2026-04-05 03:17:08 UTC
(In reply to Yuri Victorovich from comment #103)
This is the kind of bickering I'm talking about.

The claim that the list on numpy's own list is wrong seems hypocritical without further evidence to the contrary considering that much of that list was composed by consuming projects themselves after numpy notified them of the major version change.

No exp-run was ever performed, and it's not enough. They only verify that something builds and our dependency lines match up.
Comment 105 Alastair Hogge 2026-04-05 04:02:45 UTC
(In reply to Charlie Li from comment #102)
Just to lay down the "mandatory" protective statement for the fragile. Thank you for spearheading the majority of this work, and keeping the community informed to some extent.

So where is the OPENMP option? Why have you ignored bug #286376, and bug #286377?

Just to be clear, I find you your gate keeping bordering on sociopathic, at the least high-school grade bullying. You cannot respond, or deal with criticism, and you continue to ignore the efforts of other volunteers. No doubt you will play the victim here.
Comment 106 John Hein 2026-04-05 23:00:09 UTC
(In reply to Yuri Victorovich from comment #103)
"There is no path forward to numpy-2.x this way."

Why can't individual port maintainers update their DEPENDS from math/py-numpy1 to math/py-numpy... right now?  Or if one wants to do the work, update all ports that will work with numpy-2.x in one fell swoop.  Personally I'm fine with the former.  Itw doesn't have to happen all at once.
Comment 107 John Hein 2026-04-06 15:09:06 UTC
(In reply to John Hein from comment #106)
(In reply to Yuri Victorovich from comment #103)
"There is no path forward to numpy-2.x this way."

Sorry, when I posted comment 16 I was thinking we picked a solution that allowed both numpy1 and 2 to exist together - as in option (b) in comment 14. Obviously, that is not the case, so that makes it effectively impossible to just update ports gradually over time - leaving only the "do it all at once" option.

I may try to implement comment 14 option (b) despite comment 16 asserting otherwise.  Of course it is technically possible, but it may be impractical.
Comment 108 John Hein 2026-04-06 15:10:38 UTC
(In reply to John Hein from comment #107)
"when I posted comment 16 I was thinking ..." should have been "when I posted comment 106 I was thinking ..."
Comment 109 Mark Linimon freebsd_committer freebsd_triage 2026-04-08 00:44:57 UTC
^Triage: as of 2026-04-06, is there anything further that needs to be done with
these patches?  They seem to be OBE.
Comment 110 Max Brazhnikov freebsd_committer freebsd_triage 2026-04-08 10:23:30 UTC
(In reply to Mark Linimon from comment #109)
I've opened bug 294328 to coordinate migration from numpy1 to numpy2.
Comment 111 Bartosz 2026-04-11 22:14:46 UTC
The problem in comment #97 isn't CMake, but an incompatibility with the way you configured your math/openblas, see bug #294425.