mirror of
https://github.com/actions/setup-python.git
synced 2025-04-19 12:19:15 +08:00
update debug statements
This commit is contained in:
parent
efb63d1885
commit
baf938aaae
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -99615,14 +99615,12 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
||||||
'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);
|
||||||
core.debug(`Updated PATH with architecture-specific path: ${userScriptsDir}`);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// For Python < 3.10, add the default path without architecture-specific folder as per the official installer path
|
// 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');
|
const userScriptsDir = path.join(process.env['APPDATA'] || '', 'Python', `Python${major}${minor}`, 'Scripts');
|
||||||
// Add the default path to the environment PATH variable
|
// Add the default path to the environment PATH variable
|
||||||
core.addPath(userScriptsDir);
|
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.
|
// 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
|
// Add the dynamically constructed path to the environment PATH variable
|
||||||
core.addPath(userScriptsDir);
|
core.addPath(userScriptsDir);
|
||||||
core.debug(
|
|
||||||
`Updated PATH with architecture-specific path: ${userScriptsDir}`
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
// For Python < 3.10, add the default path without architecture-specific folder as per the official installer path
|
// For Python < 3.10, add the default path without architecture-specific folder as per the official installer path
|
||||||
const userScriptsDir = path.join(
|
const userScriptsDir = path.join(
|
||||||
|
@ -165,7 +162,6 @@ export async function useCpythonVersion(
|
||||||
|
|
||||||
// Add the default path to the environment PATH variable
|
// Add the default path to the environment PATH variable
|
||||||
core.addPath(userScriptsDir);
|
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.
|
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.
|
||||||
|
|
Loading…
Reference in a new issue