Skip to content

Commit bcdb209

Browse files
committed
features for symengine_py
1 parent fa52142 commit bcdb209

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

src/sage/features/symengine_py.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
r"""
2+
Check for symengine_py
3+
"""
4+
5+
# ****************************************************************************
6+
# Copyright (C) 2023 Dima Pasechnik
7+
#
8+
# This program is free software: you can redistribute it and/or modify
9+
# it under the terms of the GNU General Public License as published by
10+
# the Free Software Foundation, either version 2 of the License, or
11+
# (at your option) any later version.
12+
# https://www.gnu.org/licenses/
13+
# ****************************************************************************
14+
15+
from . import PythonModule
16+
from .join_feature import JoinFeature
17+
18+
19+
class symengine_py(JoinFeature):
20+
r"""
21+
A :class:`sage.features.Feature` describing the presence of the
22+
Python package :ref:`symengine_py <spkg_symengine_py>`.
23+
24+
EXAMPLES::
25+
26+
sage: from sage.features.igraph import symengine_py
27+
sage: symengine_py().is_present() # optional - symengine_py
28+
FeatureTestResult('symengine_py', True)
29+
"""
30+
def __init__(self):
31+
r"""
32+
TESTS::
33+
34+
sage: from sage.features.symengine_py import symengine_py
35+
sage: isinstance(symengine_py(), symengine_py)
36+
True
37+
"""
38+
JoinFeature.__init__(self, 'symengine_py',
39+
[PythonModule('symengine', spkg="symengine_py",
40+
url="https://pypi.org/project/symengine")])
41+
42+
def all_features():
43+
return [symengine_py()]

0 commit comments

Comments
 (0)