pip

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPackageNameFromSetupPy

func ExtractPackageNameFromSetupPy(setuppyFilePath, pythonExecutablePath string) (string, error)

Get the project-name by running 'egg_info' command on setup.py and extracting it from 'PKG-INFO' file.

Types

type CommonExecutor added in v2.5.0

type CommonExecutor struct {
	ServerDetails *config.ServerDetails
	Args          []string
	Repository    string
}

type NativeExecutor added in v2.5.0

type NativeExecutor struct {
	CmdName string
	CommonExecutor
}

NativeExecutor handles the execution of any pip command which is not "install".

func (*NativeExecutor) Run added in v2.5.0

func (pne *NativeExecutor) Run() error

type PipCmd

type PipCmd struct {
	Executable  string
	Command     string
	CommandArgs []string
	EnvVars     map[string]string
	StrWriter   io.WriteCloser
	ErrWriter   io.WriteCloser
}

func (*PipCmd) GetCmd

func (pc *PipCmd) GetCmd() *exec.Cmd

func (*PipCmd) GetEnv

func (pc *PipCmd) GetEnv() map[string]string

func (*PipCmd) GetErrWriter

func (pc *PipCmd) GetErrWriter() io.WriteCloser

func (*PipCmd) GetStdWriter

func (pc *PipCmd) GetStdWriter() io.WriteCloser

type PipInstaller

type PipInstaller struct {
	CommonExecutor
	ShouldParseLogs     bool
	DependencyToFileMap map[string]string
}

func (*PipInstaller) Install

func (pi *PipInstaller) Install() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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