Python tests: test venv from a nix env with Python 3.8

This test was disabled because it did not function yet, however,
apparently it does with 3.8.
This commit is contained in:
Frederik Rietdijk 2020-04-22 18:50:27 +02:00 committed by Frederik Rietdijk
parent e7460e9412
commit 71171b3225

View File

@ -38,17 +38,18 @@ let
is_nixenv = "False"; is_nixenv = "False";
}; };
} // lib.optionalAttrs (python.pythonAtLeast "3.8") {
# Venv built using Python Nix environment (python.buildEnv) # Venv built using Python Nix environment (python.buildEnv)
# TODO: Cannot create venv from a nix env # TODO: Cannot create venv from a nix env
# Error: Command '['/nix/store/ddc8nqx73pda86ibvhzdmvdsqmwnbjf7-python3-3.7.6-venv/bin/python3.7', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. # Error: Command '['/nix/store/ddc8nqx73pda86ibvhzdmvdsqmwnbjf7-python3-3.7.6-venv/bin/python3.7', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
# nixenv-venv = rec { nixenv-venv = rec {
# env = runCommand "${python.name}-venv" {} '' env = runCommand "${python.name}-venv" {} ''
# ${pythonEnv.interpreter} -m venv $out ${pythonEnv.interpreter} -m venv $out
# ''; '';
# interpreter = "${env}/bin/${pythonEnv.executable}"; interpreter = "${env}/bin/${pythonEnv.executable}";
# is_venv = "True"; is_venv = "True";
# is_nixenv = "True"; is_nixenv = "True";
# }; };
}; };
# All PyPy package builds are broken at the moment # All PyPy package builds are broken at the moment