Skip to content

Commit

Permalink
fix(nix): make 3.11 default python in container images
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Jul 29, 2024
1 parent c5b609c commit 4e95dbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@
inherit pkgs devPackages buildMultiUserNixImage;
sudoImage = inputs'.nixpod.packages.sudoImage;
homeActivationPackage = inputs'.nixpod.legacyPackages.homeConfigurations.jovyan.activationPackage;
pythonPackageEnv = pkgs.pyrovelocityDevEnv310;
pythonPackageEnv = pkgs.pyrovelocityDevEnv311;
};

jupyterImage = import ./nix/containers/jupyter.nix {
inherit pkgs devPackages buildMultiUserNixImage;
sudoImage = inputs'.nixpod.packages.sudoImage;
homeActivationPackage = inputs'.nixpod.legacyPackages.homeConfigurations.jovyan.activationPackage;
pythonPackageEnv = pkgs.pyrovelocityDevEnv310;
pythonPackageEnv = pkgs.pyrovelocityDevEnv311;
};
};

Expand Down
6 changes: 3 additions & 3 deletions nix/containers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"NIX_PAGER=cat"
"USER=root"
"HOME=/root"
"PYTHONPATH=${packageSrcPath}:${pkgs.lib.strings.makeSearchPathOutput "" "lib/python3.10/site-packages" pythonPackages}"
"PYTHONPATH=${packageSrcPath}:${pkgs.lib.strings.makeSearchPathOutput "" "lib/python3.11/site-packages" pythonPackages}"
"LD_LIBRARY_PATH=${pythonPackageEnv}/lib:/usr/local/nvidia/lib64"
"NVIDIA_DRIVER_CAPABILITIES='compute,utility'"
"NVIDIA_VISIBLE_DEVICES=all"
Expand Down Expand Up @@ -188,7 +188,7 @@
containerPackages = sysPackages ++ extraSysPackages ++ devPackages ++ devpythonPackages;
cmd = devcontainerCmd;
extraEnv = [
"QUARTO_PYTHON=${pkgs.python310}/bin/python"
"QUARTO_PYTHON=${pkgs.python311}/bin/python"
];
};
};
Expand Down Expand Up @@ -231,7 +231,7 @@
containerPackages = sysPackages ++ extraSysPackages ++ devPackages ++ devpythonPackages;
cmd = devcontainerCmd;
extraEnv = [
"QUARTO_PYTHON=${pkgs.python310}/bin/python"
"QUARTO_PYTHON=${pkgs.python311}/bin/python"
"GIT_REPO_NAME=${builtins.getEnv "GIT_REPO_NAME"}"
"GIT_REF=${builtins.getEnv "GIT_REF"}"
"GIT_SHA=${builtins.getEnv "GIT_SHA"}"
Expand Down

0 comments on commit 4e95dbd

Please sign in to comment.