Opened 3 months ago

Closed 3 months ago

#19255 closed enhancement (fixed)

numpy-1.26.4 (Python module)

Reported by: Bruce Dubbs Owned by: Bruce Dubbs
Priority: normal Milestone: 12.1
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New point version.

Change History (4)

comment:1 by Bruce Dubbs, 3 months ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:2 by Douglas R. Reno, 3 months ago

This package doesn't seem to build without some upgrades:

renodr [ /sources/numpy-1.26.4 ]$ pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir -Csetup-args=-Dallow-noblas=true $PWD
Processing /sources/numpy-1.26.4
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      meson-python: error: Unknown configuration key "tool.meson-python.meson"
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Looking upstream it looks like they removed their bundled copy of meson_python, and now depend on meson_python-0.15.0 explicitly (see https://github.com/numpy/numpy/pull/25748)

However, meson_python-0.15.0 now requires an update to pyproject-metadata as well - pyproject-metadata-0.7.1. I'll file tickets for both of those

After upgrading both pyproject-metadata and meson_python, the build succeeds. However, the tests throw up an error:

================================================================= short test summary info ==================================================================
ERROR numpy/core/tests/test_datetime.py - DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to rep...
ERROR numpy/core/tests/test_deprecations.py - DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to rep...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1 skipped, 1306 deselected, 2 errors in 11.36s

... and then immediately abort. This seems to be https://github.com/numpy/numpy/pull/25645

To fix this, we'll need to update pytz. I've installed pytz-2024.1 (we should add that as a dependency too) and after installing it and running the tests again, they now behave... mostly normal.

================================================================= short test summary info ==================================================================
FAILED numpy/f2py/tests/test_f2py2e.py::test_untitled_cli - subprocess.CalledProcessError: Command '['meson', 'setup', 'bbdir']' returned non-zero exit status 1.
FAILED numpy/f2py/tests/test_f2py2e.py::test_no_py312_distutils_fcompiler - subprocess.CalledProcessError: Command '['meson', 'setup', 'bbdir']' returned non-zero exit status 1.
FAILED numpy/tests/test_public_api.py::test_all_modules_are_expected - AssertionError: Found unexpected modules: ['numpy.distutils', 'numpy.distutils.armccompiler', 'numpy.distutils.ccompiler', 'numpy.distutils.ccompiler_o...

I'm on my test machine, so no gfortran is present. Because no gfortran is present three test failures occur, but otherwise it builds, installs, and mostly tests fine now.

comment:3 by Douglas R. Reno, 3 months ago

Pull requests merged

A total of 19 pull requests were merged for this release.

    #25323: BUG: Restore missing asstr import
    #25523: MAINT: prepare 1.26.x for further development
    #25539: BUG: numpy.array_api: fix linalg.cholesky upper decomp...
    #25584: CI: Bump azure pipeline timeout to 120 minutes
    #25585: MAINT, BLD: Fix unused inline functions warnings on clang
    #25599: BLD: include fix for MinGW platform detection
    #25618: TST: Fix test_numeric on riscv64
    #25619: BLD: fix building for windows ARM64
    #25620: MAINT: add newaxis to __all__ in numpy.array_api
    #25630: BUG: Use large file fallocate on 32 bit linux platforms
    #25643: TST: Fix test_warning_calls on Python 3.12
    #25645: TST: Bump pytz to 2023.3.post1
    #25658: BUG: Fix AVX512 build flags on Intel Classic Compiler
    #25670: BLD: fix potential issue with escape sequences in __config__.py
    #25718: CI: pin cygwin python to 3.9.16-1 and fix typing tests [skip...
    #25720: MAINT: Bump cibuildwheel to v2.16.4
    #25748: BLD: unvendor meson-python on 1.26.x and upgrade to meson-python...
    #25755: MAINT: Include header defining backtrace
    #25756: BUG: Fix np.quantile([Fraction(2,1)], 0.5) (#24711)

comment:4 by Bruce Dubbs, 3 months ago

Resolution: fixed
Status: assignedclosed

Fixed at commit 523cb74a.

Note: See TracTickets for help on using tickets.