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

Create Pipfile.locks with the Python version that is used in the respective image #574

Open
jiridanek opened this issue Jun 18, 2024 · 3 comments

Comments

@jiridanek
Copy link
Member

jiridanek commented Jun 18, 2024

Aha, understood. When you updated Pipfile.lock before, you did not run whatever command you used on Python version 3.8, but you used a newer Python?

Originally posted by @jiridanek in #572 (comment)

@jiridanek
Copy link
Member Author

From the discussions below, pip has --python option that can be specified to run resolution as if on a different Python version.

It does not seem possible to put something into Pipfile itself to pin Python version.

@guimou
Copy link
Member

guimou commented Jun 24, 2024

It does not seem possible to put something into Pipfile itself to pin Python version.

Of course you can. Example: https://github.com/opendatahub-io-contrib/workbench-images/blob/8c1c0cf735c6754fdaa332f83056dc386549ff75/base/c9s/3.11/Pipfile#L14

It's in the requirements file that you cannot set it. But that should not be a problem, because you use the requirements file in an already installed Python environment, so you have already chosen your version.

@jiridanek
Copy link
Member Author

@paulovmr mentioned that architecture could be culprit, if locking runs on arm64/aarch64 or amd64/x86_64

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

No branches or pull requests

2 participants