Description:
PIP_REQUIRE_VIRTUALENV - break setup-python action.
setup-python should consider using --isolated option:
https://pip.pypa.io/en/latest/cli/pip/#cmdoption-isolated
Action version:
setup-python@v5
Platform:
Runner type:
Tools version:
n/a
Repro steps:
0. Clear ghr _tool dir ( empty caches )
- Set
PIP_REQUIRE_VIRTUALENV=true on self-hosted runner environment
- Use the following workflow step:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- Run the workflow
Expected behavior:
Installed pip packages into local site-packages
<ghr-dir>_work/_tool/Python/3.11.15/x64/lib/python3.11/site-packages
Actual behavior:
Error: ERROR: Could not find an activated virtualenv (required).
Error: The process '/usr/bin/bash' failed with exit code 3
Description:
PIP_REQUIRE_VIRTUALENV - break setup-python action.
setup-python should consider using
--isolatedoption:https://pip.pypa.io/en/latest/cli/pip/#cmdoption-isolated
Action version:
setup-python@v5
Platform:
Runner type:
Tools version:
n/a
Repro steps:
0. Clear ghr _tool dir ( empty caches )
PIP_REQUIRE_VIRTUALENV=trueon self-hosted runner environmentExpected behavior:
Installed pip packages into local site-packages
<ghr-dir>_work/_tool/Python/3.11.15/x64/lib/python3.11/site-packagesActual behavior: