Skip to content

Commit bd6b4b6

Browse files
Add warning for python 2.7 (#673)
1 parent 0cbcb9a commit bd6b4b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/setup/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -67612,6 +67612,9 @@ function run() {
6761267612
core.info(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);
6761367613
}
6761467614
else {
67615+
if (version.startsWith('2')) {
67616+
core.warning('The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672');
67617+
}
6761567618
const installed = yield finder.useCpythonVersion(version, arch, updateEnvironment, checkLatest, allowPreReleases);
6761667619
pythonVersion = installed.version;
6761767620
core.info(`Successfully set up ${installed.impl} (${pythonVersion})`);

src/setup-python.ts

+5
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ async function run() {
9898
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
9999
);
100100
} else {
101+
if (version.startsWith('2')) {
102+
core.warning(
103+
'The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672'
104+
);
105+
}
101106
const installed = await finder.useCpythonVersion(
102107
version,
103108
arch,

0 commit comments

Comments
 (0)