Skip to content

Commit e25f9d9

Browse files
author
Matthias Koeppe
committed
Add feature 'sage.libs.homfly'
1 parent 6160a93 commit e25f9d9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/sage/features/sagemath.py

+27
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,32 @@ def __init__(self):
537537
spkg='sagemath_ntl', type='standard')
538538

539539

540+
class sage__libs__homfly(JoinFeature):
541+
r"""
542+
A :class:`sage.features.Feature` describing the presence of :mod:`sage.libs.homfly`.
543+
544+
In addition to the modularization purposes that this tag serves,
545+
it also provides attribution to the upstream project.
546+
547+
TESTS::
548+
549+
sage: from sage.features.sagemath import sage__libs__homfly
550+
sage: sage__libs__homfly().is_present() # needs sage.libs.homfly
551+
FeatureTestResult('sage.libs.homfly', True)
552+
"""
553+
def __init__(self):
554+
r"""
555+
TESTS::
556+
557+
sage: from sage.features.sagemath import sage__libs__homfly
558+
sage: isinstance(sage__libs__homfly(), sage__libs__homfly)
559+
True
560+
"""
561+
JoinFeature.__init__(self, 'sage.libs.homfly',
562+
[PythonModule('sage.libs.homfly')],
563+
spkg='sagemath_homfly', type='standard')
564+
565+
540566
class sage__libs__pari(JoinFeature):
541567
r"""
542568
A :class:`~sage.features.Feature` describing the presence of :mod:`sage.libs.pari`.
@@ -1129,6 +1155,7 @@ def all_features():
11291155
sage__libs__ecl(),
11301156
sage__libs__flint(),
11311157
sage__libs__gap(),
1158+
sage__libs__homfly(),
11321159
sage__libs__linbox(),
11331160
sage__libs__m4ri(),
11341161
sage__libs__ntl(),

0 commit comments

Comments
 (0)