MCPcopy Create free account
hub / github.com/celer-pkg/celer / IsPythonPackage

Method IsPythonPackage

buildsystems/buildconfig.go:907–916  ·  view source on GitHub ↗

IsPythonPackage returns true if the build config references Python placeholders in its custom commands, indicating it's a Python package that should be installed to the virtual environment.

()

Source from the content-addressed store, hash-verified

905// in its custom commands, indicating it's a Python package that should be installed
906// to the virtual environment.
907func (b BuildConfig) IsPythonPackage() bool {
908 commands := append(b.CustomConfigure, b.CustomBuild...)
909 commands = append(commands, b.CustomInstall...)
910 for _, command := range commands {
911 if strings.Contains(command, "${PYTHON_VENV_EXE}") || strings.Contains(command, "${PYTHON_VENV_DIR}") {
912 return true
913 }
914 }
915 return false
916}
917
918func (b BuildConfig) getLogPath(suffix string) string {
919 parentDir := filepath.Dir(b.PortConfig.BuildDir)

Callers 2

InstallFromSourceMethod · 0.80
writeTraceFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected