-
Notifications
You must be signed in to change notification settings - Fork 69
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
pass multiple setup_args through pip install #235
Comments
No amount of quoting will never split the arguments correctly to be passed to meson: there is no lexing done in meson-python and passing them as a single argument is not going to work. The only place where I see the command line argument handling for pep517 frontends specified is here https://peps.python.org/pep-0517/#config-settings and the example makes it clear that passing the same option multiple times should be supported. Also, I think this is a pip bug. Fortunately it can be worked-around easily: build a wheel with |
Even pip's own documentation states that
|
Pip does not support merging |
Now it does, after pypa/pip#11853 🎉. This will start working with the next |
I'm trying to build scipy on fedora which requires passing
so that meson will correctly find lapack. This works because with
build
, the-C
accumulate (observationally). In private communications with @rgommers he said that mulitple instances of-C
was preferable to adding shlex style splitting to the strings passed tosetup-args
.However it does not seem that
--config-settings
is pip does not accumulate and I can not find the right way to escape the command so that it flows through correctly (examples below). I am not sure if this is a issue in meson-python or should be reported upstream, but starting here.Picks up the opening quote as part of the name
Does not split
Only keeps the last flag:
The text was updated successfully, but these errors were encountered: