Skip to content

Commit a34c470

Browse files
author
Matthias Koeppe
committed
src/sage/features/sagemath.py: Add feature sage.libs.m4ri
1 parent f64c91e commit a34c470

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/sage/features/sagemath.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,33 @@ def __init__(self):
419419
spkg='sagemath_linbox', type='standard')
420420

421421

422+
class sage__libs__m4ri(JoinFeature):
423+
r"""
424+
A :class:`sage.features.Feature` describing the presence of Cython modules
425+
depending on the M4RI and/or M4RIe libraries.
426+
427+
In addition to the modularization purposes that this tag serves, it also provides attribution
428+
to the upstream project.
429+
430+
TESTS::
431+
432+
sage: from sage.features.sagemath import sage__libs__m4ri
433+
sage: sage__libs__m4ri().is_present() # needs sage.libs.m4ri
434+
FeatureTestResult('sage.libs.m4ri', True)
435+
"""
436+
def __init__(self):
437+
r"""
438+
TESTS::
439+
440+
sage: from sage.features.sagemath import sage__libs__m4ri
441+
sage: isinstance(sage__libs__m4ri(), sage__libs__m4ri)
442+
True
443+
"""
444+
JoinFeature.__init__(self, 'sage.libs.m4ri',
445+
[PythonModule('sage.matrix.matrix_gf2e_dense')],
446+
spkg='sagemath_m4ri', type='standard')
447+
448+
422449
class sage__libs__ntl(JoinFeature):
423450
r"""
424451
A :class:`sage.features.Feature` describing the presence of :mod:`sage.libs.ntl`
@@ -1033,6 +1060,7 @@ def all_features():
10331060
sage__libs__flint(),
10341061
sage__libs__gap(),
10351062
sage__libs__linbox(),
1063+
sage__libs__m4ri(),
10361064
sage__libs__ntl(),
10371065
sage__libs__pari(),
10381066
sage__libs__singular(),

0 commit comments

Comments
 (0)