mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-08 04:18:19 +02:00
Merge pull request #452 from mayeut/fix-env
Remove duplicate code introduced in #440
This commit is contained in:
commit
0ad0f6a0a5
4 changed files with 8 additions and 22 deletions
9
dist/setup/index.js
vendored
9
dist/setup/index.js
vendored
|
@ -64845,15 +64845,6 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
|
|||
`The list of all available versions can be found here: ${installer.MANIFEST_URL}`
|
||||
].join(os.EOL));
|
||||
}
|
||||
if (utils_1.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 = utils_1.IS_WINDOWS ? '.exe' : '';
|
||||
const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue