-
Notifications
You must be signed in to change notification settings - Fork 414
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
Improve behaviour when installing package with build failures that causes backtracking #775
Comments
Hmm, yeah, that’s an unfortunate combination of characteristics. I think perhaps a solution (that’s entirely contained in pipx) would be that, on What do you think? Would you be interested in working on this change to improve the situation? |
I'm unfortunately busy for the forseeable, so wouldn't have time to learn enough of the pipx codebase to implement a fix. Maybe in the future, but not for a while. I certainly wouldn't object to someone else trying to implement this. In any case, even if no-one ends up working on this, this bug report should make it easier for other people who encounter this error to figure out what's going on. |
No problem, we are all volunteers, and I understand it’s not always viable for people to contribute. Let’s leave this open for someone else interested in improving the situation. |
If we’re lucky, someone might want to fix it in pip as an alternative: pypa/pip#10655. If I understand correctly, this would automatically make this particular problem go away since pip won’t try older versions when the latest fails to build, and pipx can proceed to show the error message emitted by pip for that build failure. |
It looks like as I was reporting this issue here, someone was already working on changing the default behavior of pip to not backtrack. That was merged some time ago (https://github.com/pypa/pip/pull/107220), which has fixed this issue |
I had an interesting experience installing Mercurial on a new machine. The actual cause of failures was due to not having
python3-dev
installed. However, pipx's possibly relevant error message was:SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
It took a while for me to work out what was going on, but this seems to be the issues:
How to reproduce
pipx install mercurial
on an Ubuntu machine withpython-is-python3
installed andpython3-dev
not installed. Pipx's logs will have the useful output from the build process, but the terminal interface will hide this in favor of the SyntaxError from trying to install a Python2 package on Python3.Expected behavior
The text was updated successfully, but these errors were encountered: