summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorphaer <hello@phaer.org>2024-01-26 18:24:26 +0100
committerDavHau <hsngrmpf+github@gmail.com>2024-02-12 19:52:28 +0700
commit2651ddc7b0788932df9da7416ccd1618d76c11fe (patch)
tree3a841d33c302f42beccbee63c1c9567ea10c1f91 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentb8ec2cc99b989627c84e6b36ae9e9b9f7921779d (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions