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.
()
| 905 | // in its custom commands, indicating it's a Python package that should be installed |
| 906 | // to the virtual environment. |
| 907 | func (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 | |
| 918 | func (b BuildConfig) getLogPath(suffix string) string { |
| 919 | parentDir := filepath.Dir(b.PortConfig.BuildDir) |
no outgoing calls
no test coverage detected