Skip to content

Commit

Permalink
python.pkgs.wrapPython: fix permitUserSite logic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thiagokokada committed Nov 29, 2024
1 parent 3915d87 commit 184848d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/python/wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ wrapPythonProgramsIn() {
--prefix PATH ':' "$program_PATH"
)

if [ -z "$permitUserSite" ]; then
if [ -n "$permitUserSite" ]; then
wrap_args+=(--set PYTHONNOUSERSITE "true")
fi

Expand Down

0 comments on commit 184848d

Please sign in to comment.