Skip to content

Commit 88ffd4d

Browse files
authored
Include python version in PyPy python-version output (#1110)
1 parent 532b046 commit 88ffd4d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95875,7 +95875,7 @@ function findPyPyVersion(versionSpec, architecture, updateEnvironment, checkLate
9587595875
core.addPath(pythonLocation);
9587695876
core.addPath(_binDir);
9587795877
}
95878-
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion);
95878+
core.setOutput('python-version', `pypy${resolvedPythonVersion}-${resolvedPyPyVersion}`);
9587995879
core.setOutput('python-path', pythonPath);
9588095880
return { resolvedPyPyVersion, resolvedPythonVersion };
9588195881
});

src/find-pypy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ export async function findPyPyVersion(
9696
core.addPath(pythonLocation);
9797
core.addPath(_binDir);
9898
}
99-
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion);
99+
core.setOutput(
100+
'python-version',
101+
`pypy${resolvedPythonVersion}-${resolvedPyPyVersion}`
102+
);
100103
core.setOutput('python-path', pythonPath);
101104

102105
return {resolvedPyPyVersion, resolvedPythonVersion};

0 commit comments

Comments
 (0)