You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: meson.build runs gitversion.py with the wrong Python interpreter #24514
meson.build expects that python in the PATH is a working Python 3; that's not a good assumption.
Given that meson is run via meson_python, the Python in sys.executable should be used instead of leaving it to external circumstances. Note in particular that venvs created by python -m venv have python3 executables but not python executables.
[numpy-1.26.0b1] The Meson build system
[numpy-1.26.0b1] Version: 1.2.99
[numpy-1.26.0b1] Source dir: /sage/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/numpy-1.26.0b1/src
[numpy-1.26.0b1] Build dir: /sage/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/numpy-1.26.0b1/src/.mesonpy-q4xlebps/build
[numpy-1.26.0b1] Build type: native build
[numpy-1.26.0b1]
[numpy-1.26.0b1] ../../meson.build:4:11: ERROR: Program or command 'python' not found or not executable
[numpy-1.26.0b1]
Activity
BUG: fix issue with git-version script, needs a shebang to run
rgommers commentedon Aug 24, 2023
Thanks for the report @mkoeppe. That's a bug indeed (hopefully the last one). gh-24515 should fix this I believe.
mkoeppe commentedon Aug 24, 2023
I confirm that it works now. Thanks @rgommers!
rgommers commentedon Aug 24, 2023
Great, thanks for verifying @mkoeppe
BUG: fix issue with git-version script, needs a shebang to run
BLD: run `generate_version.py` with a shebang, not 'python'
BLD: improvements to meson.build files (#54949)
BLD: improvements to meson.build files (pandas-dev#54949)
BUG: fix issue with git-version script, needs a shebang to run