Features for testing the presence of bliss¶
- class sage.features.bliss.Bliss(*args, **kwds)[source]¶
Bases:
BuildModuleA
Featurewhich describes whether thesage.graphs.blissmodule is available in this installation of Sage.EXAMPLES:
sage: from sage.features.bliss import Bliss sage: Bliss().is_present() # needs bliss FeatureTestResult('bliss', True) sage: Bliss().is_present() # needs !bliss FeatureTestResult('bliss', False)
>>> from sage.all import * >>> from sage.features.bliss import Bliss >>> Bliss().is_present() # needs bliss FeatureTestResult('bliss', True) >>> Bliss().is_present() # needs !bliss FeatureTestResult('bliss', False)
from sage.features.bliss import Bliss Bliss().is_present() # needs bliss Bliss().is_present() # needs !bliss
A runtime check. We only check the “present” case because, if feature checks are _not_ deferred, the
needs !blisscan be satisfied (disabled at build time) at the same time we are able to import a module that was installed for a previous build of sage:sage: from sage.features.bliss import Bliss sage: Bliss().is_present_at_runtime() # needs bliss FeatureTestResult('bliss', True)
>>> from sage.all import * >>> from sage.features.bliss import Bliss >>> Bliss().is_present_at_runtime() # needs bliss FeatureTestResult('bliss', True)
from sage.features.bliss import Bliss Bliss().is_present_at_runtime() # needs bliss