Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/sage/features/giac.py: add new feature for the giac program #38672

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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