-
Notifications
You must be signed in to change notification settings - Fork 66
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
Verify user arguments #330
Comments
If we move away from having to run The remaining command line arguments are:
Therefore, the command line validation is already performed and I don't think meson-python needs to adds its own validation on top. The only open question is about the |
I've verified that Meson merges multiple native files. The only thing to decide is whether we want the user |
We run
While this is okay for editable wheels, we must keep
That is needed by the heuristics, not because we run
We don't, ours should take precedence, as it is only used to set the Python interpreter, and the PEP 517 hooks are required to build packages for the current interpreter. |
Don't we adjust the
Ok, we just need to order the command line arguments in the right way. |
This ensure that the python interpreter path specified in the meson-python native file overrides any other provided in user supplied native files. Fixes mesonbuild#330.
With #381 merged, there aren't arguments that the user may pass to Meson that conflict with the ones passed by meson-python in a way that may prevent meson-python to work properly. Even passing |
This ensure that the python interpreter path specified in the meson-python native file overrides any other provided in user supplied native files. Fixes mesonbuild#330.
This ensure that the python interpreter path specified in the meson-python native file overrides any other provided in user supplied native files. Fixes #330.
In #167, we added options to allow users to pass arguments to Meson, but that implementation allows them to pass options that may conflict with ours, which may mess things up (eg. overriding
--prefix
).While I think we should try to detect conflicting options and either error out or issue a warning, which is tricky to implement, most issues I think can be mitigated by disallowing arguments that don't start with
-
, I checked and there's no positional argument we'd want users to be able to specify, and putting our options last in the call, other than just defaults that we want the user to be able to override. I think this was a big overlook from my part when we merged that PR, probably because I was meaning to do the argument validation.The text was updated successfully, but these errors were encountered: