mirror of
https://github.com/actions/setup-python.git
synced 2025-04-20 03:53:30 +00:00
Rename function
This commit is contained in:
parent
16963e0b7e
commit
8b4ba3d70d
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -2609,7 +2609,7 @@ function findReleaseFromManifest(semanticVersionSpec, architecture) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.findReleaseFromManifest = findReleaseFromManifest;
|
exports.findReleaseFromManifest = findReleaseFromManifest;
|
||||||
function _installPython(workingDirectory) {
|
function installPython(workingDirectory) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const options = {
|
const options = {
|
||||||
cwd: workingDirectory,
|
cwd: workingDirectory,
|
||||||
@ -2646,7 +2646,7 @@ function installCpythonFromRelease(release) {
|
|||||||
pythonExtractedFolder = yield tc.extractTar(pythonPath, `./${fileName}`);
|
pythonExtractedFolder = yield tc.extractTar(pythonPath, `./${fileName}`);
|
||||||
}
|
}
|
||||||
core.info('Execute installation script');
|
core.info('Execute installation script');
|
||||||
yield _installPython(pythonExtractedFolder);
|
yield installPython(pythonExtractedFolder);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.installCpythonFromRelease = installCpythonFromRelease;
|
exports.installCpythonFromRelease = installCpythonFromRelease;
|
||||||
|
@ -29,7 +29,7 @@ export async function findReleaseFromManifest(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function _installPython(workingDirectory: string) {
|
async function installPython(workingDirectory: string) {
|
||||||
const options: ExecOptions = {
|
const options: ExecOptions = {
|
||||||
cwd: workingDirectory,
|
cwd: workingDirectory,
|
||||||
silent: true,
|
silent: true,
|
||||||
@ -64,5 +64,5 @@ export async function installCpythonFromRelease(release: tc.IToolRelease) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
core.info('Execute installation script');
|
core.info('Execute installation script');
|
||||||
await _installPython(pythonExtractedFolder);
|
await installPython(pythonExtractedFolder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user