class documentation
class Require: (source)
A prerequisite to building or installing a distribution
Method | __init__ |
Undocumented |
Method | full |
Return full package/distribution name, w/version |
Method | get |
Get version number of installed module, 'None', or 'default' |
Method | is |
Return true if dependency is present and up-to-date on 'paths' |
Method | is |
Return true if dependency is present on 'paths' |
Method | version |
Is 'version' sufficiently up-to-date? |
def __init__(self, name, requested_version, module, homepage='', attribute=None, format=None):
(source)
¶
Undocumented
Get version number of installed module, 'None', or 'default' Search 'paths' for module. If not found, return 'None'. If found, return the extracted version attribute, or 'default' if no version attribute was specified, or the value cannot be determined without importing the module. The version is formatted according to the requirement's version format (if any), unless it is 'None' or the supplied 'default'.