-
Notifications
You must be signed in to change notification settings - Fork 3k
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 presentation of errors from subprocesses, during installation #10795
Commits on Jan 25, 2022
-
Require every
call_subprocess
call-site to passcommand_desc
This serves as additional context that can be presented in error messages.
Configuration menu - View commit details
-
Copy full SHA for 531c991 - Browse repository at this point
Copy the full SHA 531c991View commit details -
Modernise the shim, to account for the Python 3.2+ support matrix. This also presents clearer error messages on failures, the included comment helps inform users about why this shim exists and the traceback now explicitly mentions `<pip-setuptools-shim>` to make it clearer to users that this shim exists.
Configuration menu - View commit details
-
Copy full SHA for 7a13f7c - Browse repository at this point
Copy the full SHA 7a13f7cView commit details -
Use
logger.warning
instead ofwarnings.warn
This is more in line with the rest of our output presentation logic.
Configuration menu - View commit details
-
Copy full SHA for 57198c6 - Browse repository at this point
Copy the full SHA 57198c6View commit details -
Clearly document that exceptions shouldn't import any internals
This file should be importable in all other modules, which means it can't be importing any of those modules (to prevent an import loop).
Configuration menu - View commit details
-
Copy full SHA for 543d0b3 - Browse repository at this point
Copy the full SHA 543d0b3View commit details -
Improve presentation of
LegacyInstallFailure
These errors now more clearly note where the error occurred and what component is at fault.
Configuration menu - View commit details
-
Copy full SHA for 2a617d5 - Browse repository at this point
Copy the full SHA 2a617d5View commit details -
Add diagnostics to
InstallationSubprocessError
This more clearly states where the error came from, presents it in a more approachable format with context provided for what this error is related to.
Configuration menu - View commit details
-
Copy full SHA for 1ee3706 - Browse repository at this point
Copy the full SHA 1ee3706View commit details -
Configuration menu - View commit details
-
Copy full SHA for d527e85 - Browse repository at this point
Copy the full SHA d527e85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68e0bd4 - Browse repository at this point
Copy the full SHA 68e0bd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a0193f - Browse repository at this point
Copy the full SHA 1a0193fView commit details -
Prettify messages for discarding candidates due to issues
These are more pleasing colours and, more importantly, a clearer presentation style of the package vs the error.
Configuration menu - View commit details
-
Copy full SHA for a835e0a - Browse repository at this point
Copy the full SHA a835e0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb46274 - Browse repository at this point
Copy the full SHA eb46274View commit details -
Tweak the chattymodule to not leak potentially information
I'd like to use this in screenshots, but the os.environ makes it a bit tricky to do.
Configuration menu - View commit details
-
Copy full SHA for deb2d75 - Browse repository at this point
Copy the full SHA deb2d75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40bed17 - Browse repository at this point
Copy the full SHA 40bed17View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba79b1c - Browse repository at this point
Copy the full SHA ba79b1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94668c6 - Browse repository at this point
Copy the full SHA 94668c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e8e5ad - Browse repository at this point
Copy the full SHA 2e8e5adView commit details -
Double-escape paths on Windows
This helps ensure that they aren't improperly handled due to the newer string-in-string design for the setuptools invocation script.
Configuration menu - View commit details
-
Copy full SHA for 723b2df - Browse repository at this point
Copy the full SHA 723b2dfView commit details