Features for testing the presence of sirocco¶
- class sage.features.sirocco.Sirocco(*args, **kwds)[source]¶
Bases:
BuildModuleA
Featurewhich describes whether thesage.libs.siroccomodule is available in this installation of Sage.EXAMPLES:
sage: from sage.features.sirocco import Sirocco sage: Sirocco().is_present() # needs sirocco FeatureTestResult('sirocco', True) sage: Sirocco().is_present() # needs !sirocco FeatureTestResult('sirocco', False)
>>> from sage.all import * >>> from sage.features.sirocco import Sirocco >>> Sirocco().is_present() # needs sirocco FeatureTestResult('sirocco', True) >>> Sirocco().is_present() # needs !sirocco FeatureTestResult('sirocco', False)
from sage.features.sirocco import Sirocco Sirocco().is_present() # needs sirocco Sirocco().is_present() # needs !sirocco
A runtime check. We only check the “present” case because, if feature checks are _not_ deferred, the
needs !siroccocan 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.sirocco import Sirocco sage: Sirocco().is_present_at_runtime() # needs sirocco FeatureTestResult('sirocco', True)
>>> from sage.all import * >>> from sage.features.sirocco import Sirocco >>> Sirocco().is_present_at_runtime() # needs sirocco FeatureTestResult('sirocco', True)
from sage.features.sirocco import Sirocco Sirocco().is_present_at_runtime() # needs sirocco