Documentation
¶
Index ¶
- func GeneratePythonEnv(pythonHome, pythonPath string) map[string]string
- func GetDepsDir(projectPath string) string
- func GetEnvConfigPath(projectPath string) string
- func GetGoBinDir(projectPath string) string
- func GetGoCacheDir(projectPath string) string
- func GetGoDir(projectPath string) string
- func GetGoPath(projectPath string) string
- func GetGoRoot(projectPath string) string
- func GetMingwDir(projectPath string) string
- func GetMingwRoot(projectPath string) string
- func GetPythonBinDir(projectPath string) string
- func GetPythonLibDir(projectPath string) string
- func GetPythonPkgConfigDir(projectPath string) string
- func GetPythonRoot(projectPath string) string
- func GetTinyPkgConfigDir(projectPath string) string
- func ReadEnv(projectDir string) (map[string]string, error)
- func ReadEnvFile(projectDir string) (map[string]string, error)
- func SetBuildEnv(projectPath string)
- func WriteEnvFile(projectPath, pythonHome, pythonPath string) error
- type PythonEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePythonEnv ¶
func GetDepsDir ¶
func GetEnvConfigPath ¶
func GetGoBinDir ¶
GetGoBinDir returns the Go binary directory path relative to project path
func GetGoCacheDir ¶
GetGoCacheDir returns the Go cache directory path relative to project path
func GetMingwDir ¶
func GetMingwRoot ¶
func GetPythonBinDir ¶
GetPythonBinDir returns the Python binary directory path relative to project path
func GetPythonLibDir ¶
GetPythonLibDir returns the Python library directory path relative to project path
func GetPythonPkgConfigDir ¶
GetPythonPkgConfigDir returns the pkg-config directory path relative to project path
func GetPythonRoot ¶
GetPythonRoot returns the Python installation root path relative to project path
func GetTinyPkgConfigDir ¶
func ReadEnvFile ¶
ReadEnvFile loads environment variables from .python/env.txt in the given directory
func SetBuildEnv ¶
func SetBuildEnv(projectPath string)
func WriteEnvFile ¶
WriteEnvFile writes environment variables to .python/env.txt
Types ¶
type PythonEnv ¶
type PythonEnv struct {
Root string // Root directory of the Python installation
}
PythonEnv represents a Python environment
func NewPythonEnv ¶
NewPythonEnv creates a new Python environment instance