summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-07-09 16:15:58 +0000
committerRichard Maw <richard.maw@gmail.com>2014-09-19 12:43:27 +0000
commit529bd21549060c8a8caa1901bf2325fcca079dca (patch)
treeda916587fb1ef24576123802265724f7c0813369
parent938a6f7a176c7867209bd5ed23937798a498b30d (diff)
downloadmorph-529bd21549060c8a8caa1901bf2325fcca079dca.tar.gz
Remove get_dependency_prefix_set
This was used by artifacts to tell what they should put in their path, based on what prefixes were used earlier. This implementation didn't handle recursive deps, and it was trivial to open-code it at the call-site, so it is no longer useful.
-rw-r--r--morphlib/artifact.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py
index 4fac69c7..8c299698 100644
--- a/morphlib/artifact.py
+++ b/morphlib/artifact.py
@@ -41,20 +41,6 @@ class Artifact(object):
def metadata_basename(self, metadata_name): # pragma: no cover
return '%s.%s' % (self.basename(), metadata_name)
- def get_dependency_prefix_set(self):
- '''Collects all install prefixes of this artifact's build dependencies
-
- If any of the build dependencies of a chunk artifact are installed
- to non-standard prefixes, we need to add those prefixes to the
- PATH of the current artifact.
-
- '''
- result = set()
- for d in self.dependencies:
- if d.source.morphology['kind'] == 'chunk':
- result.add(d.source.prefix)
- return result
-
def __str__(self): # pragma: no cover
return '%s|%s' % (self.source, self.name)