Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Move catch_conflicts.py into subdirectory (#23600)
Python does add the script's directory into "sys.path". For the case of "catch_conflicts.py" this means "/nix/store" is added to "sys.path". This can result in very long delays if the store contains a lot of entries.
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
pkgs/development/interpreters/python/catch_conflicts/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
catch_conflicts.py | ||
================== | ||
|
||
The file catch_conflicts.py is in a subdirectory because, if it isn't, the | ||
/nix/store/ directory is added to sys.path causing a delay when building. | ||
|
||
Pointers: | ||
|
||
- https://docs.python.org/3/library/sys.html#sys.path | ||
|
||
- https://github.com/NixOS/nixpkgs/pull/23600 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters