Skip to content
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

Multi-architecture hash support #2050

Closed
laurentsimon opened this issue Jan 23, 2024 · 3 comments
Closed

Multi-architecture hash support #2050

laurentsimon opened this issue Jan 23, 2024 · 3 comments

Comments

@laurentsimon
Copy link

laurentsimon commented Jan 23, 2024

What's the problem this feature will solve?

I have a project with ~1000 lines of pure python. I would like to generate a requirements.txt with hashes (--generate-hashes) that is platform-agnostic, ie I don't want to have to maintain multiple requirements.txt for each OS / architecture.

Some of my dependencies have architecture-specific wheels (i86, x64, osx, Windows, etc), and pip-compile produces hashes for platform-specific wheels. So I need to maintain a combination of requirements.txt, which is really hard.

Describe the solution you'd like

I would like the pip-compile command to generate a hash that refers to some sort of "bundle / manifest of hashes". This way the requirements.txt becomes platform-agnostic. I understand that pip won't understand this "bundle / manifest", so I probably need to ask on the pip repo as well?

Note: In docker containers, there is a similar option. As a user you can refer to a multi-arch image by hash, and docker will automatically pick the right image within the bundle to install on your machine

Alternative Solutions

Additional context

@laurentsimon
Copy link
Author

@di

@webknjaz
Copy link
Member

Duplicate of #826

@webknjaz webknjaz marked this as a duplicate of #826 Jan 24, 2024
@webknjaz webknjaz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
@webknjaz
Copy link
Member

Also, this isn't realistic at the moment: #1326 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants