writers.makePythonWriter: fix interpreter executable

(cherry picked from commit 3ea5e83373)
This commit is contained in:
Artturin
2023-06-17 22:49:06 +03:00
committed by github-actions[bot]
parent e2e2059d19
commit 1f5e0f60a7

View File

@@ -264,8 +264,8 @@ let
makeScriptWriter {
interpreter =
if libraries == []
then "${python}/bin/python"
else "${python.withPackages (ps: libraries)}/bin/python"
then python.interpreter
else (python.withPackages (ps: libraries)).interpreter
;
check = optionalString python.isPy3k (writeDash "pythoncheck.sh" ''
exec ${buildPythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1"