entropy :: dep :: DependencyRewriter :: Class DependencyRewriter

Class DependencyRewriter

source code


Class that implements the new dependency rewrite schema. It is simpler to use but less powerful than the regex based one, so the two are complementary.

Instance Methods
 
__init__(self, deps, rule)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
rewrite(self)
Do a rewrite of dependencies and set attributes: self.deps (rewritten dependencies), self.matched (any dependency matched its prerequisites) and self.changed (at least one dependency was modifed).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, deps, rule)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

rewrite(self)

source code 

Do a rewrite of dependencies and set attributes: self.deps (rewritten dependencies), self.matched (any dependency matched its prerequisites) and self.changed (at least one dependency was modifed).

Value of these attributes is not defined before executing this method.