Remove the pip-install input

This commit is contained in:
gowridurgad 2026-07-15 19:07:39 +05:30
parent 54baeea5b3
commit 30c896f02a
7 changed files with 0 additions and 175 deletions

16
dist/setup/index.js vendored
View file

@ -55919,24 +55919,12 @@ const os = __importStar(__nccwpck_require__(70857));
const fs_1 = __importDefault(__nccwpck_require__(79896));
const cache_factory_1 = __nccwpck_require__(80665);
const utils_1 = __nccwpck_require__(71798);
const exec_1 = __nccwpck_require__(95236);
function isPyPyVersion(versionSpec) {
return versionSpec.startsWith('pypy');
}
function isGraalPyVersion(versionSpec) {
return versionSpec.startsWith('graalpy');
}
async function installPipPackages(pipInstall) {
core.info(`Installing pip packages: ${pipInstall}`);
try {
const installArgs = pipInstall.trim().split(/\s+/);
await (0, exec_1.exec)('python', ['-m', 'pip', 'install', ...installArgs]);
core.info('Successfully installed pip packages');
}
catch (error) {
core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`);
}
}
async function cacheDependencies(cache, pythonVersion) {
const cacheDependencyPath = core.getInput('cache-dependency-path') || undefined;
const cacheDistributor = (0, cache_factory_1.getCacheDistributor)(cache, pythonVersion, cacheDependencyPath);
@ -56021,10 +56009,6 @@ async function run() {
if (cache && (0, utils_1.isCacheFeatureAvailable)()) {
await cacheDependencies(cache, pythonVersion);
}
const pipInstall = core.getInput('pip-install');
if (pipInstall) {
await installPipPackages(pipInstall);
}
}
else {
core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.');