Fixes the build issues on PY312 where I am getting ModuleNotFoundError: No module named 'distutils'
Created attachment 261580 [details] patch to build on pep517
Created attachment 261877 [details] Proposed patch v2 In addition to migrating numpy itself to PEP517, also short circuit MSVC related distutil legacy code to allow dependencies that has not yet moved to build with newer setuptools.
Created attachment 264489 [details] Proposed patch v3 Rebased the patch to September 10, 2025 changes
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f582fcf38bb0cee40f9346683490aceb3bda654 commit 3f582fcf38bb0cee40f9346683490aceb3bda654 Author: Matthew Wener <matthew@wener.org> AuthorDate: 2025-10-11 17:57:18 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2025-10-13 06:36:40 +0000 math/py-numpy: Migrate to PEP517 PR: ports/287794 math/py-numpy/Makefile | 12 ++++++++--- .../py-numpy/files/patch-numpy_core_setup.py (new) | 19 ++++++++++++++++++ ...patch-numpy_distutils_mingw32ccompiler.py (new) | 17 ++++++++++++++++ .../files/patch-numpy_random_setup.py (new) | 23 ++++++++++++++++++++++ math/py-numpy/files/patch-pyproject.toml (new) | 11 +++++++++++ 5 files changed, 79 insertions(+), 3 deletions(-)
Committed, thanks!
*** Bug 287380 has been marked as a duplicate of this bug. ***
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9fea2cd984a308cc38ecc0cbc0f70178b9fa5e02 commit 9fea2cd984a308cc38ecc0cbc0f70178b9fa5e02 Author: Matthew Wener <matthew@wener.org> AuthorDate: 2025-10-15 05:10:50 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2025-10-15 05:10:50 +0000 math/py-numpy: Reland Migrate to PEP517 This restores 3f582fcf38bb0cee40f9346683490aceb3bda654 but with allflavors removed. PR: ports/287794 math/py-numpy/Makefile | 12 ++++++++--- .../py-numpy/files/patch-numpy_core_setup.py (new) | 19 ++++++++++++++++++ ...patch-numpy_distutils_mingw32ccompiler.py (new) | 17 ++++++++++++++++ .../files/patch-numpy_random_setup.py (new) | 23 ++++++++++++++++++++++ math/py-numpy/files/patch-pyproject.toml (new) | 11 +++++++++++ 5 files changed, 79 insertions(+), 3 deletions(-)