mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-07-07 17:55:59 +02:00
updated the comments
This commit is contained in:
parent
12428c6332
commit
af006b58ce
2 changed files with 4 additions and 0 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -96164,6 +96164,8 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
||||||
core.addPath(installDir);
|
core.addPath(installDir);
|
||||||
core.addPath(_binDir);
|
core.addPath(_binDir);
|
||||||
if (utils_1.IS_WINDOWS) {
|
if (utils_1.IS_WINDOWS) {
|
||||||
|
// Add --user directory
|
||||||
|
// `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python/<semantic version>/x64/
|
||||||
// Extract version details
|
// Extract version details
|
||||||
const version = path.basename(path.dirname(installDir));
|
const version = path.basename(path.dirname(installDir));
|
||||||
const major = semver.major(version);
|
const major = semver.major(version);
|
||||||
|
|
|
@ -152,6 +152,8 @@ export async function useCpythonVersion(
|
||||||
core.addPath(_binDir);
|
core.addPath(_binDir);
|
||||||
|
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
|
// Add --user directory
|
||||||
|
// `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python/<semantic version>/x64/
|
||||||
// Extract version details
|
// Extract version details
|
||||||
const version = path.basename(path.dirname(installDir));
|
const version = path.basename(path.dirname(installDir));
|
||||||
const major = semver.major(version);
|
const major = semver.major(version);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue