mirror of
https://github.com/actions/setup-python.git
synced 2025-12-09 06:05:19 +00:00
add fix
This commit is contained in:
parent
efb69ecd61
commit
0c7b7994e2
2
dist/post-python/index.js
vendored
2
dist/post-python/index.js
vendored
@ -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
2
dist/setup/index.js
vendored
@ -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');
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user