summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook.sh
blob: 6ba3d7f65cb403f7bcae660fae7b3a6c0ac30c02 (plain)
1
2
3
4
5
6
7
8
9
10
# Setup hook for detecting conflicts in Python packages
echo "Sourcing python-catch-conflicts-hook.sh"

pythonCatchConflictsPhase() {
    PYTHONPATH="@setuptools@/@pythonSitePackages@:$PYTHONPATH" @pythonInterpreter@ @catchConflicts@
}

if [ -z "${dontUsePythonCatchConflicts-}" ]; then
    appendToVar preDistPhases pythonCatchConflictsPhase
fi