Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/sage/features/giac.py
Original file line number Diff line number Diff line change
@@ -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 <spkg_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()]
Loading