diff options
author | Artturin <Artturin@artturin.com> | 2023-06-17 22:49:06 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-06-17 22:58:14 +0300 |
commit | 3ea5e8337304e65b77f0d56ca872ddac6516b970 (patch) | |
tree | 88087dac771ce46368e01d74c7cc0d25b953c47e /pkgs/build-support | |
parent | d6e221f0790f0d4ee4d06ef007a8cb5cf81c547f (diff) |
writers.makePythonWriter: fix interpreter executable
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/writers/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/writers/default.nix b/pkgs/build-support/writers/default.nix index 2c26f350fbd77..3016a45b8a0f1 100644 --- a/pkgs/build-support/writers/default.nix +++ b/pkgs/build-support/writers/default.nix @@ -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" |