-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Support more platforms with --generate-hashes #414
Comments
FYI you can use import hashin
hashin.get_package_hashes('pip-tools', version='1.8.1') |
@graingert so is the suggestion to use |
@jonafato I think it would be better to continue to use PackageFinder directly, and upgrade it in pip |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently,
--generate-hashes
generates hashes for resources than can be installed to the current platform. This can be problematic with platform-specific wheels, e.g. forcffi
. For example, generatingrequirements.txt
on a Mac can produce a file that will fail when installing on Linux. Instead, I'd like--generate-hashes
to behave likehashin
does, generating hashes for all available downloads.@dstufft can you advise on how / if
pip
can fetch resources for platforms other than the current one? Should I instead go down the same route thathashin
does and skip usingpip
's download mechanism entirely?@nvie Is this an improvement that would be accepted if I did the work for it?
Steps to replicate
Desired result
Actual result
The text was updated successfully, but these errors were encountered: