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:
parent
efb63d1885
commit
baf938aaae
2 changed files with 0 additions and 6 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue