Home Explore Blog Models CI



nixpkgs

1st chunk of `pkgs/development/interpreters/python/catch_conflicts/README.md`
7dca25a767ba79a5221e2a860fc107816cc4918081039fb4000000010000012f


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

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.