Get Python this way?

This commit is contained in:
Jean-Paul Calderone 2022-01-27 13:57:09 -05:00
parent 9c964f4acd
commit 5cab1f7a4c
2 changed files with 12 additions and 1 deletions

View File

@ -458,7 +458,7 @@ jobs:
name: "Generation version"
command: |
# The Nix package doesn't know how to do this part, unfortunately.
nix-shell -p python --run 'python setup.py update_version'
nix-shell .circleci/python.nix --run 'python setup.py update_version'
- "run":
name: "Build and Test"

11
.circleci/python.nix Normal file
View File

@ -0,0 +1,11 @@
# Define a helper environment for incidental Python tasks required on CI.
let
sources = import ../nix/sources.nix;
in
{ pkgs ? import sources."nixpkgs-21.11" { }
}:
pkgs.mkShell {
buildInputs = [
pkgs.python3
];
}