mirror of
https://github.com/actions/setup-python.git
synced 2024-12-27 09:55:23 +01:00
parent
3faddefb4c
commit
869e769ec8
4 changed files with 6 additions and 6 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -66283,7 +66283,7 @@ function findPyPyVersion(versionSpec, architecture, updateEnvironment, checkLate
|
||||||
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);
|
||||||
core.setOutput('python-path', pythonPath);
|
core.setOutput('python-path', pythonPath);
|
||||||
return { resolvedPyPyVersion, resolvedPythonVersion };
|
return { resolvedPyPyVersion, resolvedPythonVersion };
|
||||||
});
|
});
|
||||||
|
@ -66699,7 +66699,7 @@ function findRelease(releases, pythonVersion, pypyVersion, architecture, include
|
||||||
return {
|
return {
|
||||||
foundAsset,
|
foundAsset,
|
||||||
resolvedPythonVersion: foundRelease.python_version,
|
resolvedPythonVersion: foundRelease.python_version,
|
||||||
resolvedPyPyVersion: foundRelease.pypy_version
|
resolvedPyPyVersion: foundRelease.pypy_version.trim()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
exports.findRelease = findRelease;
|
exports.findRelease = findRelease;
|
||||||
|
@ -67095,7 +67095,7 @@ function readExactPyPyVersionFile(installDir) {
|
||||||
let pypyVersion = '';
|
let pypyVersion = '';
|
||||||
let fileVersion = path.join(installDir, PYPY_VERSION_FILE);
|
let fileVersion = path.join(installDir, PYPY_VERSION_FILE);
|
||||||
if (fs_1.default.existsSync(fileVersion)) {
|
if (fs_1.default.existsSync(fileVersion)) {
|
||||||
pypyVersion = fs_1.default.readFileSync(fileVersion).toString();
|
pypyVersion = fs_1.default.readFileSync(fileVersion).toString().trim();
|
||||||
}
|
}
|
||||||
return pypyVersion;
|
return pypyVersion;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ export async function findPyPyVersion(
|
||||||
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);
|
||||||
core.setOutput('python-path', pythonPath);
|
core.setOutput('python-path', pythonPath);
|
||||||
|
|
||||||
return {resolvedPyPyVersion, resolvedPythonVersion};
|
return {resolvedPyPyVersion, resolvedPythonVersion};
|
||||||
|
|
|
@ -233,7 +233,7 @@ export function findRelease(
|
||||||
return {
|
return {
|
||||||
foundAsset,
|
foundAsset,
|
||||||
resolvedPythonVersion: foundRelease.python_version,
|
resolvedPythonVersion: foundRelease.python_version,
|
||||||
resolvedPyPyVersion: foundRelease.pypy_version
|
resolvedPyPyVersion: foundRelease.pypy_version.trim()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ export function readExactPyPyVersionFile(installDir: string) {
|
||||||
let pypyVersion = '';
|
let pypyVersion = '';
|
||||||
let fileVersion = path.join(installDir, PYPY_VERSION_FILE);
|
let fileVersion = path.join(installDir, PYPY_VERSION_FILE);
|
||||||
if (fs.existsSync(fileVersion)) {
|
if (fs.existsSync(fileVersion)) {
|
||||||
pypyVersion = fs.readFileSync(fileVersion).toString();
|
pypyVersion = fs.readFileSync(fileVersion).toString().trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
return pypyVersion;
|
return pypyVersion;
|
||||||
|
|
Loading…
Reference in a new issue