Help PDM to find interpreters

This commit is contained in:
Timothée Mazzucotelli 2021-09-18 14:38:54 +02:00 committed by GitHub
parent f97e1f4c28
commit 1e7f16f25b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ async function run(): Promise<void> {
arch
);
}
await exec.exec('pdm', ['use', '-f', installedPython.version]);
await exec.exec('pdm', ['use', '-f', 'python' + installedPython.version.replace(/^([23]\.\d+).*$/g, '$1')]);
const pdmVersionOutput = (await execChild('pdm --version')).stdout;
if (process.platform === 'linux') {
// See https://github.com/actions/virtual-environments/issues/2803