Feature for testing the presence of libbraiding¶
- class sage.features.libbraiding.Libbraiding(*args, **kwds)[source]¶
Bases:
BuildModuleA
sage.features.Featuredescribing the presence ofsage.libs.braiding, the interface to libbraiding.EXAMPLES:
sage: from sage.features.libbraiding import Libbraiding sage: Libbraiding().is_present() # needs libbraiding FeatureTestResult('libbraiding', True) sage: Libbraiding().is_present() # needs !libbraiding FeatureTestResult('libbraiding', False)
A runtime check. We only check the “present” case because, if feature checks are _not_ deferred, the
needs !libbraidingcan 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.libbraiding import Libbraiding sage: Libbraiding().is_present_at_runtime() # needs libbraiding FeatureTestResult('libbraiding', True)