This commit is contained in:
Reinier Criel 2025-10-22 06:59:32 -07:00
parent d0f2edec0a
commit f086aeb2be
6 changed files with 44 additions and 6 deletions

View file

@ -2,9 +2,14 @@ import { ui } from "../../environment/userInteraction.js";
import { safeSpawn } from "../../utils/safeSpawn.js";
import { mergeSafeChainProxyEnvironmentVariables } from "../../registryProxy/registryProxy.js";
export function createPipPackageManager() {
/**
* Creates a package manager interface for Python's pip package installer
*
* @param {string} [command="pip"] - The pip command to use (e.g., "pip", "pip3") defaults to "pip"
*/
export function createPipPackageManager(command = "pip") {
return {
runCommand: (args) => runPipCommand("pip3", args),
runCommand: (args) => runPipCommand(command, args),
// For pip, set proxy server
isSupportedCommand: () => false,