From 184848d76b1f70ee1db1f1927fd08b1185825e4c Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 29 Nov 2024 19:33:20 +0000 Subject: [PATCH] python.pkgs.wrapPython: fix permitUserSite logic Right now the logic for `permitUserSite` is reversed: when it is set to `false` (the default), it will add the `PYTHONNOUSERSITE=true`, while it should be opposite. This results in all packages that use Python's wrap to unnecessary include this environment variable. --- pkgs/development/interpreters/python/wrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/wrap.sh b/pkgs/development/interpreters/python/wrap.sh index f10ba003432be..f1ba513696c51 100644 --- a/pkgs/development/interpreters/python/wrap.sh +++ b/pkgs/development/interpreters/python/wrap.sh @@ -75,7 +75,7 @@ wrapPythonProgramsIn() { --prefix PATH ':' "$program_PATH" ) - if [ -z "$permitUserSite" ]; then + if [ -n "$permitUserSite" ]; then wrap_args+=(--set PYTHONNOUSERSITE "true") fi