-
Notifications
You must be signed in to change notification settings - Fork 166
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
pypi: Enhance guidance on how to reconstruct a "file_name" qualifier from inspecting installed Python packages #349
Comments
The formats are:
I don't know if pip keeps a record of where the package came from so it may be difficult to figure out the appropriate name from an install package. Packages that were downloaded as a source distribution may appear to have been installed from a binary distribution. |
modern pip does. see https://packaging.python.org/en/latest/specifications/direct-url/
it is pretty easy. see https://github.com/CycloneDX/cyclonedx-python/blob/8228cbb65070008279859579b6149e6f6e6f0404/cyclonedx_py/_internal/utils/pep610.py#L101-L119 |
I don't think so.
|
For example, if you create a virtualenv and then install
|
The general sentiment in pypa/pip#10736 is that this should happen at install time by adding the For example, installing with
|
As a follow up to:
filename
qualifier to pypi. #170 (comment)we should provide guidance to tools authors on how to reconstruct a file_name when inspecting an installed Python package.
The text was updated successfully, but these errors were encountered: