python3Packages.kaleido.tests: run python with -P

Python puts the directory of the script at the front of sys.path.
The script is a file at the root of the store, so sys.path[0] is /nix/store.
The first import then lists all of /nix/store.
In some sandboxes, that listing takes many minutes.
The -P flag tells Python not to add the script directory to sys.path.

Assisted-by: Claude Code (Claude Opus 5.5)
This commit is contained in:
Graham Christensen
2026-11-17 13:39:59 -05:00
parent 9a0f7c4ad0
commit 6f73191dc8

View File

@@ -13,4 +13,4 @@ runCommand "${kaleido.pname}-tests" {
pandas
kaleido
];
} "python3 ${./tests.py}"
} "python3 -P ${./tests.py}"