pip

package
v1.2.6-otto1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 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.

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 {
	RtDetails           *config.ArtifactoryDetails
	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