mirror of
https://github.com/actions/setup-python.git
synced 2024-11-25 02:16:54 +01:00
Add warning for python 2.7 (#673)
This commit is contained in:
parent
0cbcb9a3d7
commit
bd6b4b6205
2 changed files with 8 additions and 0 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -67612,6 +67612,9 @@ function run() {
|
||||||
core.info(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);
|
core.info(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (version.startsWith('2')) {
|
||||||
|
core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672');
|
||||||
|
}
|
||||||
const installed = yield finder.useCpythonVersion(version, arch, updateEnvironment, checkLatest, allowPreReleases);
|
const installed = yield finder.useCpythonVersion(version, arch, updateEnvironment, checkLatest, allowPreReleases);
|
||||||
pythonVersion = installed.version;
|
pythonVersion = installed.version;
|
||||||
core.info(`Successfully set up ${installed.impl} (${pythonVersion})`);
|
core.info(`Successfully set up ${installed.impl} (${pythonVersion})`);
|
||||||
|
|
|
@ -98,6 +98,11 @@ async function run() {
|
||||||
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
|
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
if (version.startsWith('2')) {
|
||||||
|
core.warning(
|
||||||
|
'The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672'
|
||||||
|
);
|
||||||
|
}
|
||||||
const installed = await finder.useCpythonVersion(
|
const installed = await finder.useCpythonVersion(
|
||||||
version,
|
version,
|
||||||
arch,
|
arch,
|
||||||
|
|
Loading…
Reference in a new issue