-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
BLD Do not require meson-python when using meson directly #29578
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
BLD Do not require meson-python when using meson directly #29578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested locally by uninstalling meson-python
from my dev env while keeping meson
and ninja
installed and I can build successfully with meson
/ ninja
(while it's not the case on main
).
For my education, when would you not use pip/use meson directly? |
pip is definitely the 99.9% use case. Sometimes it's convenient to do meson + ninja, for example to show the full compilation commands being run as in #28603 (comment). I am sure there is a way with Edit: I ended up editing #28603 (comment) to add the way to use pip and pass |
meson-python is used when going through pip as the build backend.
Without meson-python installed, you should be able to build just fine doing something like
This PR only checks meson-python version when it is installed, which is good enough (i.e. does not exactly differentiate between going through pip or using meson directly).