Skip to content

ci/nix: downgrade python to 3.9, enforce in scripts#639

Open
JDuchniewicz wants to merge 1 commit intomainfrom
jakub/python_version_check
Open

ci/nix: downgrade python to 3.9, enforce in scripts#639
JDuchniewicz wants to merge 1 commit intomainfrom
jakub/python_version_check

Conversation

@JDuchniewicz
Copy link
Contributor

This prevents issues with too new Python version features, like #629

If anyone has a better way of preventing that, I'm willing to change it.

@JDuchniewicz JDuchniewicz force-pushed the jakub/python_version_check branch from d7ac865 to 3202947 Compare February 13, 2026 05:12
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
# Python 3.9 is not in the official repo anymore
python39.url = "github:NixOS/nixpkgs/c5dd43934613ae0f8ff37c59f61c507c2e8f980d";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is going to download duplicates of everything including entire libc and everything, which is a lot of extra things to download

Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
@Ivan-Velickovic
Copy link
Collaborator

Hmm not sure about this. If it's not in Nix packages I'm not sure it's worth it.

@Ivan-Velickovic
Copy link
Collaborator

The Mac Mini self-hosted runner has Python 3.9 so the only other thing I was thinking is to manually run ./ci/run.py --help or something like that with Python 3.9.

Not the best solution but would have caught some of the errors that we've been running into.

@JDuchniewicz
Copy link
Contributor Author

I am in general against bounding dependencies from above. However, other than forcing users to manually verify with python3.9 or dropping support for older python versions, I don't see a better solution.

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

Successfully merging this pull request may close these issues.

3 participants

Comments