From 14403d56305e7592b7c9f7f08ae06439bdffd466 Mon Sep 17 00:00:00 2001 From: SandaruKasa Date: Tue, 19 May 2026 01:17:34 +0300 Subject: [PATCH] makePythonWriter: remove a useless pypy check --- pkgs/build-support/writers/scripts.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/build-support/writers/scripts.nix b/pkgs/build-support/writers/scripts.nix index 01afb249d407..572409a45f31 100644 --- a/pkgs/build-support/writers/scripts.nix +++ b/pkgs/build-support/writers/scripts.nix @@ -1192,15 +1192,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"