Documentation ¶
Index ¶
- Variables
- func AssertPythonPackage(python3 string, pkgName, pkgVersion string) error
- func Command(name string, arg ...string) *exec.Cmd
- func EnsurePython3Venv(venv string, packages ...string) (python3 string, err error)
- func ExecCommandInDir(cmd *exec.Cmd, dir string) error
- func ExecPython3Command(cmdName string, args ...string) error
- func InstallPythonPackage(python3 string, pkg string) (err error)
- func KillProcessesByGpid(cmd *exec.Cmd) error
- func RunCommand(cmdName string, args ...string) error
- func RunShell(shellString string) (exitCode int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PYPI_INDEX_URL = os.Getenv("PYPI_INDEX_URL") PATH = os.Getenv("PATH") )
Functions ¶
func AssertPythonPackage ¶
func EnsurePython3Venv ¶
EnsurePython3Venv ensures python3 venv with specified packages venv should be directory path of target venv
func ExecPython3Command ¶
func InstallPythonPackage ¶
func KillProcessesByGpid ¶
func RunCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.