Skip to content

Allow overriding Python version when calling the opsqueue_python Nix package#96

Open
Qqwy wants to merge 2 commits intomasterfrom
python-allow_overriding
Open

Allow overriding Python version when calling the opsqueue_python Nix package#96
Qqwy wants to merge 2 commits intomasterfrom
python-allow_overriding

Conversation

@Qqwy
Copy link
Copy Markdown
Contributor

@Qqwy Qqwy commented Apr 20, 2026

Without this, if e.g. a user of the Nix Python package builds their own python that is separate from pkgs.python3 (e.g. rather than overriding that one in an overlay, they create a separate one), it is likely that the resulting wheel / compiled FFI module is not placed in the right location, which makes the build fail (at the 'can I find all the imports' step).

This PR fixes that, by adding python = ... to the parameters of opsqueue_python.nix meaning that a user can do callPackage "......./opsqueue_python.nix" { python = myOtherPython; }; and be merry.

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.

1 participant