Feature for testing the presence of libbraiding

class sage.features.libbraiding.Libbraiding(*args, **kwds)[source]

Bases: BuildModule

A sage.features.Feature describing the presence of sage.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 !libbraiding can 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)
sage.features.libbraiding.all_features()[source]