mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
debug update
This commit is contained in:
parent
7349bad731
commit
850fba7b6d
2 changed files with 3 additions and 4 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -99613,11 +99613,10 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
||||||
// For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path
|
// For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path
|
||||||
let arch = '';
|
let arch = '';
|
||||||
// Check for x32 or x86 and append the '-32' suffix
|
// Check for x32 or x86 and append the '-32' suffix
|
||||||
// Check for x32 or x86 and append the '-32' suffix
|
|
||||||
if (architecture === 'x32' || architecture === 'x86') {
|
if (architecture === 'x32' || architecture === 'x86') {
|
||||||
arch = `-32`; // Always add '-32' for both x32 and x86 architectures
|
arch = `-32`; // Always add '-32' for both x32 and x86 architectures
|
||||||
}
|
}
|
||||||
const userScriptsDir = path.join(process.env['APPDATA'] || '', 'Python', `Python${major}${minor}${arch}`, // Add architecture-specific folder (e.g., Python310-64 or Python310-32)
|
const userScriptsDir = path.join(process.env['APPDATA'] || '', 'Python', `Python${major}${minor}${arch}`, // Add architecture-specific folder (e.g., Python310 or Python310-32)
|
||||||
'Scripts');
|
'Scripts');
|
||||||
// Add the dynamically constructed path to the environment PATH variable
|
// Add the dynamically constructed path to the environment PATH variable
|
||||||
core.addPath(userScriptsDir);
|
core.addPath(userScriptsDir);
|
||||||
|
|
|
@ -142,7 +142,7 @@ export async function useCpythonVersion(
|
||||||
if (major > 3 || (major === 3 && minor >= 10)) {
|
if (major > 3 || (major === 3 && minor >= 10)) {
|
||||||
// For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path
|
// For Python >= 3.10 and architecture!= 'x64', add the architecture-specific folder to the path
|
||||||
let arch = '';
|
let arch = '';
|
||||||
// Check for x32 or x86 and append the '-32' suffix
|
|
||||||
// Check for x32 or x86 and append the '-32' suffix
|
// Check for x32 or x86 and append the '-32' suffix
|
||||||
if (architecture === 'x32' || architecture === 'x86') {
|
if (architecture === 'x32' || architecture === 'x86') {
|
||||||
arch = `-32`; // Always add '-32' for both x32 and x86 architectures
|
arch = `-32`; // Always add '-32' for both x32 and x86 architectures
|
||||||
|
@ -151,7 +151,7 @@ export async function useCpythonVersion(
|
||||||
const userScriptsDir = path.join(
|
const userScriptsDir = path.join(
|
||||||
process.env['APPDATA'] || '',
|
process.env['APPDATA'] || '',
|
||||||
'Python',
|
'Python',
|
||||||
`Python${major}${minor}${arch}`, // Add architecture-specific folder (e.g., Python310-64 or Python310-32)
|
`Python${major}${minor}${arch}`, // Add architecture-specific folder (e.g., Python310 or Python310-32)
|
||||||
'Scripts'
|
'Scripts'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue