Skip to content

Commit bd6b4b6

Browse files
Add warning for python 2.7 (actions#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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy