Merge pull request #89607 from danieldk/pep-517-shellhook-fix
pythonPackages.pipBuildHook: do not build in an isolated environment
This commit is contained in:
commit
5f47c36752
2 changed files with 4 additions and 2 deletions
|
@ -24,7 +24,8 @@ pipShellHook() {
|
|||
export PATH="$tmp_path/bin:$PATH"
|
||||
export PYTHONPATH="$tmp_path/@pythonSitePackages@:$PYTHONPATH"
|
||||
mkdir -p "$tmp_path/@pythonSitePackages@"
|
||||
@pythonInterpreter@ -m pip install -e . --prefix "$tmp_path" >&2
|
||||
@pythonInterpreter@ -m pip install -e . --prefix "$tmp_path" \
|
||||
--no-build-isolation >&2
|
||||
fi
|
||||
|
||||
runHook postShellHook
|
||||
|
|
|
@ -29,7 +29,8 @@ setuptoolsShellHook() {
|
|||
export PATH="$tmp_path/bin:$PATH"
|
||||
export PYTHONPATH="$tmp_path/@pythonSitePackages@:$PYTHONPATH"
|
||||
mkdir -p "$tmp_path/@pythonSitePackages@"
|
||||
eval "@pythonInterpreter@ -m pip install -e . --prefix $tmp_path >&2"
|
||||
eval "@pythonInterpreter@ -m pip install -e . --prefix $tmp_path \
|
||||
--no-build-isolation >&2"
|
||||
fi
|
||||
|
||||
runHook postShellHook
|
||||
|
|
Loading…
Reference in a new issue