You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-30 22:57:59 +07:00 
			
		
		
		
	Add warning for python 2.7 on release/v3 (#674)
* add warning * npm run format * remove ubuntu-18.04
This commit is contained in:
		
							
								
								
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -6479,6 +6479,9 @@ function run() { | ||||
|                     core.info(`Successfully setup PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`); | ||||
|                 } | ||||
|                 else { | ||||
|                     if (version.trim().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); | ||||
|                     pythonVersion = installed.version; | ||||
|                     core.info(`Successfully setup ${installed.impl} (${pythonVersion})`); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
					Dmitry Shibanov