makePythonWriter: remove a useless (and incorrect) check (#521741)

This commit is contained in:
Eman Resu
2026-07-15 14:05:19 +00:00
committed by GitHub

View File

@@ -1196,15 +1196,12 @@ rec {
])
// {
interpreter =
if pythonPackages != pkgs.pypy2Packages || pythonPackages != pkgs.pypy3Packages then
if libraries == [ ] then
python.interpreter
else if (lib.isFunction libraries) then
(python.withPackages libraries).interpreter
else
(python.withPackages (ps: libraries)).interpreter
if libraries == [ ] then
python.interpreter
else if (lib.isFunction libraries) then
(python.withPackages libraries).interpreter
else
python.interpreter;
(python.withPackages (ps: libraries)).interpreter;
check = optionalString (python.isPy3k && doCheck) (
writeDash "pythoncheck.sh" ''
exec ${buildPythonPackages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1"