Home Explore Blog Models CI



nixpkgs

pkgs/development/interpreters/python/catch_conflicts/README.md
74c7959aa1e63012982b2f7ea3ee932a3143452733704304000000030000012f


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

Chunks
7dca25a7 (1st chunk of `pkgs/development/interpreters/python/catch_conflicts/README.md`)
Title: Placement of catch_conflicts.py and sys.path Implications
Summary
The file `catch_conflicts.py` is intentionally placed in a subdirectory to prevent the `/nix/store/` directory from being added to `sys.path`, which would otherwise cause a delay during the build process. The text provides links to Python's `sys.path` documentation and a relevant Nixpkgs pull request for further context.