pip

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

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.

func GetExecutablePath

func GetExecutablePath(executableName string) (string, error)

Get executable path. If run inside a virtual-env, this should return the path for the correct executable.

Types

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 {
	ServerDetails       *config.ServerDetails
	Args                []string
	Repository          string
	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