Skip to content

Commit f64c91e

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

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/sage/features/sagemath.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,37 @@ def __init__(self):
392392
PythonModule('sage.interfaces.gap')])
393393

394394

395+
class sage__libs__linbox(JoinFeature):
396+
r"""
397+
A :class:`sage.features.Feature` describing the presence of :mod:`sage.libs.linbox`
398+
and other modules depending on Givaro, FFLAS-FFPACK, LinBox.
399+
400+
In addition to the modularization purposes that this tag serves, it also provides attribution
401+
to the upstream project.
402+
403+
TESTS::
404+
405+
sage: from sage.features.sagemath import sage__libs__linbox
406+
sage: sage__libs__linbox().is_present() # needs sage.libs.linbox
407+
FeatureTestResult('sage.libs.linbox', True)
408+
"""
409+
def __init__(self):
410+
r"""
411+
TESTS::
412+
413+
sage: from sage.features.sagemath import sage__libs__linbox
414+
sage: isinstance(sage__libs__linbox(), sage__libs__linbox)
415+
True
416+
"""
417+
JoinFeature.__init__(self, 'sage.libs.linbox',
418+
[PythonModule('sage.rings.finite_rings.element_givaro')],
419+
spkg='sagemath_linbox', type='standard')
420+
421+
395422
class sage__libs__ntl(JoinFeature):
396423
r"""
397424
A :class:`sage.features.Feature` describing the presence of :mod:`sage.libs.ntl`
398-
and other modules depending on NTL and arb.
425+
and other modules depending on NTL.
399426
400427
In addition to the modularization purposes that this tag serves, it also provides attribution
401428
to the upstream project.
@@ -1005,6 +1032,7 @@ def all_features():
10051032
sage__libs__ecl(),
10061033
sage__libs__flint(),
10071034
sage__libs__gap(),
1035+
sage__libs__linbox(),
10081036
sage__libs__ntl(),
10091037
sage__libs__pari(),
10101038
sage__libs__singular(),

0 commit comments

Comments
 (0)