This commit is contained in:
Jean-Yves LENHOF 2025-11-19 15:10:04 +01:00
parent efb69ecd61
commit 0c7b7994e2
3 changed files with 3 additions and 3 deletions

View File

@ -87855,7 +87855,7 @@ async function cleanPipPackages() {
// Use a shell so we can pipe the output of pip freeze into xargs
await (0, exec_1.exec)('bash', [
'-c',
'test $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true'
'test $(which python) != "/usr/bin/python" -a $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true'
]);
core.info('Successfully cleaned up pip packages');
}

2
dist/setup/index.js vendored
View File

@ -96746,7 +96746,7 @@ async function cleanPipPackages() {
// Use a shell so we can pipe the output of pip freeze into xargs
await (0, exec_1.exec)('bash', [
'-c',
'test $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true'
'test $(which python) != "/usr/bin/python" -a $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true'
]);
core.info('Successfully cleaned up pip packages');
}

View File

@ -9,7 +9,7 @@ export async function cleanPipPackages() {
// Use a shell so we can pipe the output of pip freeze into xargs
await exec('bash', [
'-c',
'test $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true'
'test $(which python) != "/usr/bin/python" -a $(python -m pip freeze | wc -l) -gt 0 && python -m pip freeze | xargs python -m pip uninstall -y || true'
]);
core.info('Successfully cleaned up pip packages');
} catch (error) {