-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Broken packaging for Windows through pip #1310
Comments
We don't have any special requirements, so ideally we should be able to look at some other project that is using pip on Windows successfully and do what they're doing. |
I investigated this issue a bit further, and it seems the problem comes from the space in the shebang. (see my edit for more information) Apparently the issue (or a similar issue) was reported (pypa/setuptools#398) and closed without resolution by pointing to a new issue (pypa/pip#2783). At some point later a pull request landed (pypa/setuptools#616) and was documented to be part of setuptools 24.3.1 even though it actually landed in setuptools 25.1.2, at the same time as the release notes for 24.3.1 were updated. Weird so far. Anyway, this pull request claimed to have fixed the original reported issue (pypa/setuptools#398), yet didn't actually mention the new issue that was opened. As long as it's fixed, I guess. So then I checked my setuptools version:
So I ran
The weirdest part? These guys claim it works for them! I honestly have no idea at this point. Can someone else confirm that they can reproduce it? |
Another update, the bug can't be reproduced with this command:
But it can still be reproduced it with this command:
@jpakkane, it's probably the version of setuptools that you use for packaging. Edit:Sorry, it's not the packaging. If I download meson-0.37.1.tar.gz from PyPi's repository website and install it manually by extracting it and using Final conclusion: The bug is in either pip's or setuptools's codepaths, and triggers only when pip is used to install the package from the PyPi repository. It does not trigger when installing from either a local source, a remote git repository or a local copy downloaded directly from the repository website. |
I'm not sure when this was fixed, but I have been |
The current pip distribution turns makes Meson's Python scripts unable to run in Windows.
Reproduction steps:
pip3 install meson
meson.py -h
* You may have to restart at some point in the process, Windows is weird like that.
Expected results:
Meson should run and show its syntax.
Actual results:
You get the following error:
The reason:
If I look at the installed Meson Python scripts, I see that the shebang line is the following:
While it should be:
Changing this value back fixes the problem and allows me to run "meson.py -h" without any issue.
EDIT:
Apparently the issue actually comes from the fact that there is a space in the path to python.exe. Adding quotations around the path is another way to fix it, like so:
The text was updated successfully, but these errors were encountered: