@@ -2071,6 +2071,8 @@ function findPyPyVersion(versionSpec, architecture) {
2071
2071
core.exportVariable('pythonLocation', pythonLocation);
2072
2072
core.addPath(pythonLocation);
2073
2073
core.addPath(_binDir);
2074
+ core.setOutput('python-version', resolvedPythonVersion);
2075
+ core.setOutput('python-install-dir', installDir);
2074
2076
return { resolvedPyPyVersion, resolvedPythonVersion };
2075
2077
});
2076
2078
}
@@ -57008,6 +57010,7 @@ function usePyPy(majorVersion, architecture) {
57008
57010
}
57009
57011
const impl = 'pypy' + majorVersion.toString();
57010
57012
core.setOutput('python-version', impl);
57013
+ core.setOutput('python-install-dir', installDir);
57011
57014
return { impl: impl, version: versionFromPath(installDir) };
57012
57015
}
57013
57016
function useCpythonVersion(version, architecture) {
@@ -57056,6 +57059,7 @@ function useCpythonVersion(version, architecture) {
57056
57059
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.
57057
57060
const installed = versionFromPath(installDir);
57058
57061
core.setOutput('python-version', installed);
57062
+ core.setOutput('python-install-dir', installDir);
57059
57063
return { impl: 'CPython', version: installed };
57060
57064
});
57061
57065
}
0 commit comments