Skip to content

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

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
project(
'matplotlib',
'c', 'cpp',
version: run_command(find_program('python3'), '-m', 'setuptools_scm', check: true).stdout().strip(),
version: run_command(
# Also keep version in sync with pyproject.toml.
find_program('python3', 'python', version: '>= 3.10'),
'-m', 'setuptools_scm', check: true).stdout().strip(),
# qt_editor backend is MIT
# ResizeObserver at end of lib/matplotlib/backends/web_backend/js/mpl.js is CC0
# Carlogo, STIX and Computer Modern is OFL
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies = [
"pyparsing >= 2.3.1",
"python-dateutil >= 2.7",
]
# Also keep in sync with find_program of meson.build.
requires-python = ">=3.10"

[project.optional-dependencies]
Expand Down
Loading