-
-
Notifications
You must be signed in to change notification settings - Fork 403
/
tdlib.py
38 lines (31 loc) · 1.23 KB
/
tdlib.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# sage_setup: distribution = sagemath-environment
r"""
Features for testing the presence of ``tdlib``
"""
# *****************************************************************************
# Copyright (C) 2021 Matthias Koeppe
# 2021 Kwankyu Lee
#
# Distributed under the terms of the GNU General Public License (GPL)
# as published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
# https://www.gnu.org/licenses/
# *****************************************************************************
from . import PythonModule
from .join_feature import JoinFeature
class Tdlib(JoinFeature):
r"""
A :class:`~sage.features.Feature` describing the presence of the SageMath interface to the :ref:`tdlib <spkg_tdlib>` library.
"""
def __init__(self):
r"""
TESTS::
sage: from sage.features.tdlib import Tdlib
sage: isinstance(Tdlib(), Tdlib)
True
"""
JoinFeature.__init__(self, 'tdlib',
[PythonModule('sage.graphs.graph_decompositions.tdlib',
spkg='sagemath_tdlib')])
def all_features():
return [Tdlib()]