Skip to content

Commit

Permalink
writers.makePythonWriter: fix interpreter executable
Browse files Browse the repository at this point in the history
(cherry picked from commit 3ea5e83)
  • Loading branch information
Artturin authored and github-actions[bot] committed Jun 18, 2023
1 parent e2e2059 commit 1f5e0f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/build-support/writers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1f5e0f6

Please sign in to comment.