Features for testing the presence of mcqd¶
- class sage.features.mcqd.Mcqd(*args, **kwds)[source]¶
Bases:
BuildModuleA
Featuredescribing the presence of themcqdmodule, which is the SageMath interface to the mcqd libraryEXAMPLES:
sage: from sage.features.mcqd import Mcqd sage: Mcqd().is_present() # needs mcqd FeatureTestResult('mcqd', True) sage: Mcqd().is_present() # needs !mcqd FeatureTestResult('mcqd', False)
>>> from sage.all import * >>> from sage.features.mcqd import Mcqd >>> Mcqd().is_present() # needs mcqd FeatureTestResult('mcqd', True) >>> Mcqd().is_present() # needs !mcqd FeatureTestResult('mcqd', False)
from sage.features.mcqd import Mcqd Mcqd().is_present() # needs mcqd Mcqd().is_present() # needs !mcqd
A runtime check. We only check the “present” case because, if feature checks are _not_ deferred, the
needs !mcqdcan 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.mcqd import Mcqd sage: Mcqd().is_present_at_runtime() # needs mcqd FeatureTestResult('mcqd', True)
>>> from sage.all import * >>> from sage.features.mcqd import Mcqd >>> Mcqd().is_present_at_runtime() # needs mcqd FeatureTestResult('mcqd', True)
from sage.features.mcqd import Mcqd Mcqd().is_present_at_runtime() # needs mcqd