diff --git a/src/sage/features/giac.py b/src/sage/features/giac.py new file mode 100644 index 00000000000..6f9fe2ccfba --- /dev/null +++ b/src/sage/features/giac.py @@ -0,0 +1,30 @@ +# sage_setup: distribution = sagemath-environment +r""" +Feature for testing the presence of ``giac`` +""" + +from . import Executable, FeatureTestResult + +class Giac(Executable): + r""" + A :class:`~sage.features.Feature` describing the presence of :ref:`giac `. + + EXAMPLES:: + + sage: from sage.features.giac import Giac + sage: Giac().is_present() # needs giac + FeatureTestResult('giac', True) + """ + def __init__(self): + r""" + TESTS:: + + sage: from sage.features.giac import Giac + sage: isinstance(Giac(), Giac) + True + """ + Executable.__init__(self, 'giac', executable='giac', + spkg='giac', type='standard') + +def all_features(): + return [Giac()]