tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py312-numpy build is broken



py312-numpy build is broken in HEAD and 2023Q4, presumably related to
recent changes around distutils (py310-numpy and py311-numpy are both
fine):

[18/494] Generating numpy/core/__ufunc_api with a custom command
FAILED: numpy/core/__ufunc_api.c numpy/core/__ufunc_api.h
/pkg/2023Q4/bin/python3.12 ../../numpy/core/code_generators/generate_ufunc_api.py -o numpy/core
Traceback (most recent call last):
  File "/tmp/pkgbuild/2023Q4/math/py-numpy/work/numpy-1.26.2/.mesonpy-4ix705qv/build/../../numpy/core/code_generators/generate_ufunc_api.py", line 199, in <module> 
    main()
  File "/tmp/pkgbuild/2023Q4/math/py-numpy/work/numpy-1.26.2/.mesonpy-4ix705qv/build/../../numpy/core/code_generators/generate_ufunc_api.py", line 195, in main
    generate_api(outdir_abs)
  File "/tmp/pkgbuild/2023Q4/math/py-numpy/work/numpy-1.26.2/.mesonpy-4ix705qv/build/../../numpy/core/code_generators/generate_ufunc_api.py", line 129, in generate_api
    if (not force and not genapi.should_rebuild(targets, sources + [__file__])):
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/pkgbuild/2023Q4/math/py-numpy/work/numpy-1.26.2/numpy/core/code_generators/genapi.py", line 308, in should_rebuild
    from distutils.dep_util import newer_group
ModuleNotFoundError: No module named 'distutils'

It's not just me:

http://victory.netbsd.org/pkgsrc/packages/reports/2023Q4/amd64-9.0/20240109.0621/py312-numpy-1.26.2nb1/build.log
http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20240110.2155/py312-numpy-1.26.3/build.log

And a host of others, hasn't succeeded since December, according to
the bulk build tracker:

https://releng.netbsd.org/bulktracker/math/py-numpy

Can someone who has the Python distutils mess recently paged into
working memory take a look?


Home | Main Index | Thread Index | Old Index