Include python version in PyPy python-version output (#1110)

This commit is contained in:
Marc Mueller 2025-07-21 21:01:05 +02:00 committed by GitHub
parent 532b046aaf
commit 88ffd4d597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -95875,7 +95875,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); core.setOutput('python-version', `pypy${resolvedPythonVersion}-${resolvedPyPyVersion}`);
core.setOutput('python-path', pythonPath); core.setOutput('python-path', pythonPath);
return { resolvedPyPyVersion, resolvedPythonVersion }; return { resolvedPyPyVersion, resolvedPythonVersion };
}); });

View file

@ -96,7 +96,10 @@ export async function findPyPyVersion(
core.addPath(pythonLocation); core.addPath(pythonLocation);
core.addPath(_binDir); core.addPath(_binDir);
} }
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion); core.setOutput(
'python-version',
`pypy${resolvedPythonVersion}-${resolvedPyPyVersion}`
);
core.setOutput('python-path', pythonPath); core.setOutput('python-path', pythonPath);
return {resolvedPyPyVersion, resolvedPythonVersion}; return {resolvedPyPyVersion, resolvedPythonVersion};