Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BLD: Ensure meson.build has the right version of Python#29997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:mainfromQuLogic:cibw-windows
May 2, 2025

Conversation

QuLogic
Copy link
Member

PR summary

Ifpython3 is in the path, it might be picked up instead of the one used to build. This is the case on GitHub actions, where cibuildwheel seems to explicitly call the Python (3.11+) it wants, butpython3 is in the hosted tool cache as an older version (3.9) that gets picked by Meson. This matters because we need to runsetuptools_scm to produce the version, and it may not be installed in thePATH-based copy.

By specifying the version, Meson should skip thePATH option, and choose its final fallback, the interpreter that it is itself running on. While still not guaranteed to be correct everywhere, this should at least work for CI.

PR checklist

@QuLogicQuLogic added Build CI: Run cibuildwheelRun wheel building tests on a PR labelsMay 1, 2025
@QuLogicQuLogic added this to thev3.10.2 milestoneMay 1, 2025
@github-actionsgithub-actionsbot removed the CI: Run cibuildwheelRun wheel building tests on a PR labelMay 1, 2025
@QuLogicQuLogic added the CI: Run cibuildwheelRun wheel building tests on a PR labelMay 1, 2025
If `python3` is in the path, it might be picked up instead of the oneused to build. This is the case on GitHub actions, where cibuildwheelseems to explicitly call the Python (3.11+) it wants, but `python3` isin the hosted tool cache as an older version (3.9) that gets picked byMeson. This matters because we need to run `setuptools_scm` to producethe version, and it may not be installed in the `PATH`-based copy.By specifying the version, Meson should skip the `PATH` option, andchoose its final fallback, the interpreter that it is itself running on.While still not guaranteed to be correct everywhere, this should atleast work for CI.
@github-actionsgithub-actionsbot removed the CI: Run cibuildwheelRun wheel building tests on a PR labelMay 1, 2025
@QuLogicQuLogic added the CI: Run cibuildwheelRun wheel building tests on a PR labelMay 1, 2025
@QuLogic
Copy link
MemberAuthor

As an addendum, it seems like the fallback I was hoping for didn't work (possibly a bug in Meson to fix?) However, addingpython as another explicit fallback did work, since the tool cache only haspython3.

@timhoffmtimhoffm merged commit440eb61 intomatplotlib:mainMay 2, 2025
52 checks passed
@lumberbot-appLumberbot (App)
Copy link

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout v3.10.xgit pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 440eb61accb18de4a2270b44831d646a09a8e196
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #29997: BLD: Ensure meson.build has the right version of Python'
  1. Push to a named branch:
git push YOURFORK v3.10.x:auto-backport-of-pr-29997-on-v3.10.x
  1. Create a PR against branch v3.10.x, I would have named this PR:

"Backport PR#29997 on branch v3.10.x (BLD: Ensure meson.build has the right version of Python)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove theStill Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free tosuggest an improvement.

@QuLogicQuLogic deleted the cibw-windows branchMay 2, 2025 08:44
QuLogic pushed a commit to QuLogic/matplotlib that referenced this pull requestMay 2, 2025
@QuLogic
Copy link
MemberAuthor

Conflict was expected due to the differing Python requirements; backport is#29999.

@ksundenksunden mentioned this pull requestMay 9, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
BuildCI: Run cibuildwheelRun wheel building tests on a PR
Projects
None yet
Milestone
v3.10.3
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@tacaswell@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp