summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Liz Kammer <eakammer@google.com> 2020-06-23 23:42:36 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-06-23 23:42:36 +0000
commitce3912fd4b5ab3b4343d8ffb12f6e0e6190ad738 (patch)
tree5796e9ea1a86ceffbfc476b3e413ef69007dcded /python/python.go
parent28d654952998aab41359980562ff2673fa2bc63e (diff)
parente0070ee3134f46139b5b8e0f30b43c78144724b2 (diff)
Merge "Implement OutputFiles for python modules."
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/python.go b/python/python.go
index 8b912be17..a6c9e2a07 100644
--- a/python/python.go
+++ b/python/python.go
@@ -251,6 +251,18 @@ func (p *Module) HostToolPath() android.OptionalPath {
return android.OptionalPathForPath(p.installer.(*binaryDecorator).path)
}
+func (p *Module) OutputFiles(tag string) (android.Paths, error) {
+ switch tag {
+ case "":
+ if outputFile := p.installSource; outputFile.Valid() {
+ return android.Paths{outputFile.Path()}, nil
+ }
+ return android.Paths{}, nil
+ default:
+ return nil, fmt.Errorf("unsupported module reference tag %q", tag)
+ }
+}
+
func (p *Module) isEmbeddedLauncherEnabled(actual_version string) bool {
switch actual_version {
case pyVersion2: