Revert "python.pipInstallHook: avoid producing wrong direct_url.json file"

Certain packages were failing since this was merged.
https://github.com/NixOS/nixpkgs/pull/229472#issuecomment-1544410416

This reverts commit bff6c67911.
This commit is contained in:
Frederik Rietdijk 2023-05-17 12:19:52 +02:00
parent a1ce450761
commit f04278458b

View file

@ -10,7 +10,9 @@ pipInstallPhase() {
mkdir -p "$out/@pythonSitePackages@"
export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
@pythonInterpreter@ -m pip install $pname --find-links dist --no-index --no-warn-script-location --prefix="$out" --no-cache $pipInstallFlags
pushd dist || return 1
@pythonInterpreter@ -m pip install ./*.whl --no-index --no-warn-script-location --prefix="$out" --no-cache $pipInstallFlags
popd || return 1
runHook postInstall
echo "Finished executing pipInstallPhase"