-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Installation report does not include requested_extras
if pkg referenced by path
#11946
Comments
@phaer Thanks for reporting. I could reproduce. I'll investigate. |
@sbidoul Thanks for the confirmation! I just started looking into writing a test to compare reports from direct installs and installs from index which could catch such problems :) I've noticed that direct install reports seem to miss "download_info.hashes" as well. |
@phaer I had just added a test (and a possible fix) for this in #11947. Regarding |
installs and those from index. is_direct and url are expected to differ, everything else should be equal. At least requested_extras and hashes are not, see pypa#11946
Ah, I see. download_info with direct URLs. Good catch. I have something in the works that addresses that incidentally. |
@sbidoul Thanks for quick the solution! |
Description
Hello,
While trying out the fantastic new installation report feature, I've noticed different behavior when installing packages with extras by name (i.e.
Jinja2[i18n]
) compared to installing them by Path (i.e..[i18n]
or/tmp/Jinja2.tar.gz[i18n]
.requested_extras
in the installation reports gets correctly set to[i18n]
in the first case, but missing in the latter.This seems only to affect extras in the report, the packages are installed correctly in both cases.
requested: true
on Jinaj2 is also set correctly in both cases.Expected behavior
I'd expect the installation report the same w.r.t. requested_extras if the effective output, the installed packages, are the same.
i.e. the two pip install commands below should yield the same output.
pip version
23.0.1
Python version
3.10
OS
NixOS 22.11
How to Reproduce
Jinja2[i18n]
by nameJinja2-3.1.2.tar.gz[i18n]
as downloaded from pypirequested_extras: ["i18n"]
while the latter does not.Output
Code of Conduct
The text was updated successfully, but these errors were encountered: