mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-01 18:30:19 +00:00
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:
@@ -13,4 +13,4 @@ runCommand "${kaleido.pname}-tests" {
|
||||
pandas
|
||||
kaleido
|
||||
];
|
||||
} "python3 ${./tests.py}"
|
||||
} "python3 -P ${./tests.py}"
|
||||
|
||||
Reference in New Issue
Block a user