Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 1b8634d

Browse files
author
Matthias Koeppe
committed
sage.doctest.external: Add 4ti2
1 parent 5c23cc9 commit 1b8634d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/sage/doctest/external.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,19 @@ def has_rubiks():
303303
from sage.features.rubiks import Rubiks
304304
return Rubiks().is_present()
305305

306+
def has_4ti2():
307+
"""
308+
Test if the 4ti2 package is available.
309+
310+
EXAMPLES::
311+
312+
sage: from sage.doctest.external import has_4ti2
313+
sage: has_4ti2() # optional -- 4ti2
314+
FeatureTestResult('4ti2', True)
315+
"""
316+
from sage.features.four_ti_2 import FourTi2
317+
return FourTi2().is_present()
318+
306319
def external_software():
307320
"""
308321
Return the alphabetical list of external software supported by this module.
@@ -345,7 +358,8 @@ class AvailableSoftware(object):
345358
346359
sage: from sage.doctest.external import external_software, available_software
347360
sage: external_software
348-
['cplex',
361+
['4ti2',
362+
'cplex',
349363
'ffmpeg',
350364
'graphviz',
351365
'gurobi',

0 commit comments

Comments
 (0)