nixpkgs/pkgs/development/interpreters/python
phaer 2651ddc7b0 python/catch_conflicts: scan $out, not sys.path
This changes the non-legacy version of pythonCatchConflictsHook
to recursively scan the output of the target derivation  as well
as its propagatedBuildInputs for duplicate dependencies.

Previously, we did scan sys.path but did prove problematic as it
produced false positives i.e. when build-time dependencies of
hooks - such as setuptools in pythonCatchConflictsHook itself -
where mistakenly flagged as duplicates; even though the are
not included in the outputs of the target dervation.

As all python runtime-dependencies are currently passed via
propagatedBuildInputs in nixpkgs, scanning that plus
site-packages seems sufficient to catch all conflicts that
matter at runtime and less likely to produce false positives.

The legacyHook in catch_conflicts_py2.py needs to be migrated
as well, if it's still needed.
2024-02-12 19:52:28 +07:00
..
catch_conflicts python/catch_conflicts: scan $out, not sys.path 2024-02-12 19:52:28 +07:00
conda
cpython python312: use vendored mpdecimal library on darwin 2024-02-06 20:44:08 +01:00
hooks
manylinux
pypy
python2
rustpython
tests
update-python-libraries update-python-libraries: support applications outside python-modules 2024-01-10 15:01:54 +01:00
default.nix python312: 3.12.1 -> 3.12.2 2024-02-08 00:54:57 +01:00
mk-python-derivation.nix mk-python-derivation: fix passthru.updateScript being merged into the derivation (#241922) 2024-02-07 08:14:34 +01:00
passthrufun.nix
python-packages-base.nix python311Packages.recursive-pth-loader: rename from recursivePthLoader 2024-01-25 22:13:17 +01:00
run_setup.py
setup-hook.nix
setup-hook.sh
sitecustomize.py
tests.nix pythonInterpreters.pypy39_prebuilt: fix tests eval (#278950) 2024-01-09 18:46:49 +01:00
with-packages.nix
wrap-python.nix
wrap.sh
wrapper.nix