Skip to content

Commit 2a6a2e7

Browse files
committed
Cut out user site-packages, it screws up sudo envs now?
1 parent 10856b5 commit 2a6a2e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ executors:
2222
# too tight; seems like small uses 5 credits/min and medium, the default,
2323
# uses 10
2424
environment:
25+
# Don't use the Python user site-packages; one is pre-populated by CI (at
26+
# least, as of 2025ish?) and will cause the "real" site-packages to omit
27+
# those packages, leading to subtle problems with subshells (like when
28+
# using sudo).
29+
PYTHONNOUSERSITE: "1"
30+
# So we get pretty output for some subcommands.
2531
TERM: screen-256color
2632

2733

0 commit comments

Comments
 (0)