myexec

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 AssertPythonPackage(python3 string, pkgName, pkgVersion string) error

func Command

func Command(name string, arg ...string) *exec.Cmd

func EnsurePython3Venv

func EnsurePython3Venv(venv string, packages ...string) (python3 string, err error)

EnsurePython3Venv ensures python3 venv with specified packages venv should be directory path of target venv

func ExecCommandInDir

func ExecCommandInDir(cmd *exec.Cmd, dir string) error

func ExecPython3Command

func ExecPython3Command(cmdName string, args ...string) error

func InstallPythonPackage

func InstallPythonPackage(python3 string, pkg string) (err error)

func KillProcessesByGpid

func KillProcessesByGpid(cmd *exec.Cmd) error

func RunCommand

func RunCommand(cmdName string, args ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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