Commit f0427845 authored by Frederik Rietdijk's avatar Frederik Rietdijk
Browse files

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 bff6c679.
parent a1ce4507
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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"