You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-31 15:16:23 +07:00 
			
		
		
		
	set PKG_CONFIG_PATH environment var
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -52374,6 +52374,7 @@ function findPyPyVersion(versionSpec, architecture) { | |||||||
|         const _binDir = path.join(installDir, pipDir); |         const _binDir = path.join(installDir, pipDir); | ||||||
|         const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir); |         const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir); | ||||||
|         core.exportVariable('pythonLocation', pythonLocation); |         core.exportVariable('pythonLocation', pythonLocation); | ||||||
|  |         core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig'); | ||||||
|         core.addPath(pythonLocation); |         core.addPath(pythonLocation); | ||||||
|         core.addPath(_binDir); |         core.addPath(_binDir); | ||||||
|         core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim()); |         core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim()); | ||||||
| @ -57009,6 +57010,7 @@ function useCpythonVersion(version, architecture) { | |||||||
|             ].join(os.EOL)); |             ].join(os.EOL)); | ||||||
|         } |         } | ||||||
|         core.exportVariable('pythonLocation', installDir); |         core.exportVariable('pythonLocation', installDir); | ||||||
|  |         core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig'); | ||||||
|         if (utils_1.IS_LINUX) { |         if (utils_1.IS_LINUX) { | ||||||
|             const libPath = process.env.LD_LIBRARY_PATH |             const libPath = process.env.LD_LIBRARY_PATH | ||||||
|                 ? `:${process.env.LD_LIBRARY_PATH}` |                 ? `:${process.env.LD_LIBRARY_PATH}` | ||||||
|  | |||||||
| @ -50,6 +50,7 @@ export async function findPyPyVersion( | |||||||
|   const _binDir = path.join(installDir, pipDir); |   const _binDir = path.join(installDir, pipDir); | ||||||
|   const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir); |   const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir); | ||||||
|   core.exportVariable('pythonLocation', pythonLocation); |   core.exportVariable('pythonLocation', pythonLocation); | ||||||
|  |   core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig'); | ||||||
|   core.addPath(pythonLocation); |   core.addPath(pythonLocation); | ||||||
|   core.addPath(_binDir); |   core.addPath(_binDir); | ||||||
|   core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim()); |   core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim()); | ||||||
|  | |||||||
| @ -70,6 +70,7 @@ export async function useCpythonVersion( | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   core.exportVariable('pythonLocation', installDir); |   core.exportVariable('pythonLocation', installDir); | ||||||
|  |   core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig'); | ||||||
|  |  | ||||||
|   if (IS_LINUX) { |   if (IS_LINUX) { | ||||||
|     const libPath = process.env.LD_LIBRARY_PATH |     const libPath = process.env.LD_LIBRARY_PATH | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey Dolin
					Sergey Dolin