1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-03-14 22:26:58 +01:00

update debug statements

This commit is contained in:
Aparna Jyothi 2025-02-18 11:06:40 +05:30
parent efb63d1885
commit baf938aaae
2 changed files with 0 additions and 6 deletions

2
dist/setup/index.js vendored
View file

@ -99615,14 +99615,12 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
'Scripts');
// Add the dynamically constructed path to the environment PATH variable
core.addPath(userScriptsDir);
core.debug(`Updated PATH with architecture-specific path: ${userScriptsDir}`);
}
else {
// For Python < 3.10, add the default path without architecture-specific folder as per the official installer path
const userScriptsDir = path.join(process.env['APPDATA'] || '', 'Python', `Python${major}${minor}`, 'Scripts');
// Add the default path to the environment PATH variable
core.addPath(userScriptsDir);
core.debug(`Updated PATH for Python < 3.10: ${userScriptsDir}`);
}
}
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.

View file

@ -151,9 +151,6 @@ export async function useCpythonVersion(
// Add the dynamically constructed path to the environment PATH variable
core.addPath(userScriptsDir);
core.debug(
`Updated PATH with architecture-specific path: ${userScriptsDir}`
);
} else {
// For Python < 3.10, add the default path without architecture-specific folder as per the official installer path
const userScriptsDir = path.join(
@ -165,7 +162,6 @@ export async function useCpythonVersion(
// Add the default path to the environment PATH variable
core.addPath(userScriptsDir);
core.debug(`Updated PATH for Python < 3.10: ${userScriptsDir}`);
}
}
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.