GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BLD: unvendor meson-python on 1.26.x and upgrade to meson-python 0.15 by rgommers · Pull Request #25748 · numpy/numpy

Conversation

@rgommers

@rgommers rgommers commented Feb 2, 2024

Copy link
Copy Markdown
Member

This is a backport of gh-25008. It closes gh-25681.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rgommers added 2 commits February 2, 2024 14:01
@rgommers
BLD: remove last usage of distutils in _core/code_generators/
5a0cd8e
(cherry picked from commit 9b38c63)
@rgommers
BLD: unvendor meson-python [wheel build]
3548f9d
The meson-python 0.15.0 release added the ability to configure a
custom `meson` in `pyproject.toml`. So there's no longer a need for
us to vendor it.

(cherry picked from commit 6544e33,
 adding a version range to depend on meson-python 0.15.x)
@rgommers rgommers added 36 - Build Build related PR Meson Items related to the introduction of Meson as the new build system for NumPy labels Feb 2, 2024
@rgommers rgommers added this to the 1.26.4 release milestone Feb 2, 2024
@rgommers

rgommers commented Feb 2, 2024

Copy link
Copy Markdown
Member Author

The Windows wheel build failures showing Invalid --only='""' are due to an issue with cibuildwheel pypa/cibuildwheel#1740. Upgrading to fix that.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers
CI: upgrade cibuildwheel from 2.16.4 to 2.16.5 [wheel build]
f984240
This fixes issues with Windows wheel builds; a new GitHub Actions
runner image caused argument escaping to break.
@rgommers

rgommers commented Feb 2, 2024

Copy link
Copy Markdown
Member Author

The other issue is in the regular musllinux job:

$ /__w/numpy/numpy/test_env/bin/python -m pytest --rootdir=/__w/numpy/numpy/build-install/usr/lib/python3.10/site-packages -n auto -m 'not slow' numpy
/__w/numpy/numpy/test_env/lib/python3.10/site-packages/_pytest/config/__init__.py:328: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: helpconfig, Hook: pytest_cmdline_parse
ConftestImportFailure: ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there. (from /__w/numpy/numpy/build-install/usr/lib/python3.10/site-packages/numpy/conftest.py)
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
  config = pluginmanager.hook.pytest_cmdline_parse(
ImportError while loading conftest '/__w/numpy/numpy/build-install/usr/lib/python3.10/site-packages/numpy/conftest.py'.
numpy/__init__.py:135: in <module>
    raise ImportError(msg) from e
E   ImportError: Error importing numpy: you should not try to import numpy from
E           its source directory; please exit the numpy source tree, and relaunch
E           your python interpreter from there.

Looks like that is due to a new pluggy version (1.4.0, released last week) - yay for transitive dependencies: matplotlib/pytest-mpl#221. It's almost holiday time for me, so I'm inclined to just ignore that for now on 1.26.x, since it's harmless.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris

charris commented Feb 2, 2024

Copy link
Copy Markdown
Member

since it's harmless.

The wheels look to be built and pass, which is my main concern, but I suspect that is a bit of an accident, perhaps because pytest is pinned to 7.4.0 in test_requirements and those requirements are installed before running the wheel tests. Alternatively, the wheel tests are -mfast, while the musl tests are -m 'not slow'.

In any case we may want to look at numpy/conftest.py, which has

#FIXME when yield tests are gone.
@pytest.hookimpl()
def pytest_itemcollected(item):

We still have yield tests. Scipy doesn't have the hook, so that is good.

rgommers reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris merged commit 837cd38 into numpy:maintenance/1.26.x Feb 2, 2024
@charris

charris commented Feb 2, 2024

Copy link
Copy Markdown
Member

Thanks Ralf.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers
rgommers deleted the unvendor-mesonpython branch February 2, 2024 19:00
@hoodmane hoodmane mentioned this pull request Feb 9, 2024
Numpy v1.26.4 build fails: Module "features" does not exist pyodide/pyodide#4498
Closed
@rgommers rgommers mentioned this pull request Nov 19, 2025
Resolves a python@12 ^[email protected]:1.26:3 conflict; adds depends_on('cxx') to lib tool spack/spack-packages#1572
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

36 - Build Build related PR Meson Items related to the introduction of Meson as the new build system for NumPy

Projects

None yet

Milestone

1.26.4 release

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rgommers @charris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.