Merge pull request #9 from pawamoy/patch-2

Help PDM to find interpreters
This commit is contained in:
Frost Ming 2021-09-18 21:53:55 +08:00 committed by GitHub
commit 8b3dbb8ada
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 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; const pdmVersionOutput = (await execChild('pdm --version')).stdout;
if (process.platform === 'linux') { if (process.platform === 'linux') {
// See https://github.com/actions/virtual-environments/issues/2803 // See https://github.com/actions/virtual-environments/issues/2803