pip

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipCLI

type PipCLI struct {
	// Global
	// - In a “pip” subdirectory of any of the paths set in the environment variable XDG_CONFIG_DIRS (if it exists), for example /etc/xdg/pip/pip.conf.
	// This will be followed by loading /etc/pip.conf.
	//
	// User
	// - $HOME/.config/pip/pip.conf, which respects the XDG_CONFIG_HOME environment variable.
	// The legacy “per-user” configuration file is also loaded, if it exists: $HOME/.pip/pip.conf.
	//
	// Site
	// - $VIRTUAL_ENV/pip.conf
	// PIP_CONFIG_FILE
	// Additionally, the environment variable PIP_CONFIG_FILE can be used to specify a configuration file that’s loaded last, and whose values override
	// the values set in the aforementioned files. Setting this to os.devnull disables the loading of all configuration files. Note that if a file exists
	// at the location that this is set to, the user config file will not be loaded.
	//
	// Configuration - pip documentation v24.0 https://pip.pypa.io/en/stable/topics/configuration/
	ConfigFilePath string
	Bin            string
	EnvPath        string
}

func NewPipCLIWithCondaEnv

func NewPipCLIWithCondaEnv(envPrefix string) *PipCLI

func (*PipCLI) InstallWithRequirementsTxt

func (p *PipCLI) InstallWithRequirementsTxt(logger *logrus.Entry, requirementsTxt string) error

Equivalent to `pip install -r requirements.txt`

func (*PipCLI) Version

func (p *PipCLI) Version(logger *logrus.Entry) (string, error)

Equivalent to `pip --version`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL