mirror of
				https://gitea.com/actions/setup-python.git
				synced 2025-11-02 07:47:09 +00:00 
			
		
		
		
	Merge pull request #452 from mayeut/fix-env
Remove duplicate code introduced in #440
This commit is contained in:
		@@ -70,17 +70,6 @@ export async function useCpythonVersion(
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (IS_LINUX) {
 | 
			
		||||
    const libPath = process.env.LD_LIBRARY_PATH
 | 
			
		||||
      ? `:${process.env.LD_LIBRARY_PATH}`
 | 
			
		||||
      : '';
 | 
			
		||||
    const pyLibPath = path.join(installDir, 'lib');
 | 
			
		||||
 | 
			
		||||
    if (!libPath.split(':').includes(pyLibPath)) {
 | 
			
		||||
      core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const _binDir = binDir(installDir);
 | 
			
		||||
  const binaryExtension = IS_WINDOWS ? '.exe' : '';
 | 
			
		||||
  const pythonPath = path.join(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user