passagemath-environment 10.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- passagemath_environment-10.4.1.data/scripts/sage +1140 -0
- passagemath_environment-10.4.1.data/scripts/sage-env +667 -0
- passagemath_environment-10.4.1.data/scripts/sage-num-threads.py +105 -0
- passagemath_environment-10.4.1.data/scripts/sage-python +2 -0
- passagemath_environment-10.4.1.data/scripts/sage-venv-config +42 -0
- passagemath_environment-10.4.1.data/scripts/sage-version.sh +9 -0
- passagemath_environment-10.4.1.dist-info/METADATA +76 -0
- passagemath_environment-10.4.1.dist-info/RECORD +70 -0
- passagemath_environment-10.4.1.dist-info/WHEEL +5 -0
- passagemath_environment-10.4.1.dist-info/top_level.txt +1 -0
- sage/all__sagemath_environment.py +4 -0
- sage/env.py +496 -0
- sage/features/__init__.py +981 -0
- sage/features/all.py +126 -0
- sage/features/bliss.py +85 -0
- sage/features/cddlib.py +38 -0
- sage/features/coxeter3.py +45 -0
- sage/features/csdp.py +83 -0
- sage/features/cython.py +38 -0
- sage/features/databases.py +302 -0
- sage/features/dvipng.py +40 -0
- sage/features/ecm.py +42 -0
- sage/features/ffmpeg.py +119 -0
- sage/features/four_ti_2.py +55 -0
- sage/features/fricas.py +66 -0
- sage/features/gap.py +86 -0
- sage/features/gfan.py +38 -0
- sage/features/giac.py +30 -0
- sage/features/graph_generators.py +171 -0
- sage/features/graphviz.py +117 -0
- sage/features/igraph.py +44 -0
- sage/features/imagemagick.py +138 -0
- sage/features/interfaces.py +256 -0
- sage/features/internet.py +65 -0
- sage/features/jmol.py +44 -0
- sage/features/join_feature.py +146 -0
- sage/features/kenzo.py +77 -0
- sage/features/latex.py +300 -0
- sage/features/latte.py +85 -0
- sage/features/lrs.py +164 -0
- sage/features/mcqd.py +45 -0
- sage/features/meataxe.py +46 -0
- sage/features/mip_backends.py +114 -0
- sage/features/msolve.py +68 -0
- sage/features/nauty.py +70 -0
- sage/features/normaliz.py +43 -0
- sage/features/palp.py +65 -0
- sage/features/pandoc.py +42 -0
- sage/features/pdf2svg.py +41 -0
- sage/features/phitigra.py +42 -0
- sage/features/pkg_systems.py +195 -0
- sage/features/polymake.py +43 -0
- sage/features/poppler.py +58 -0
- sage/features/rubiks.py +180 -0
- sage/features/sagemath.py +1205 -0
- sage/features/sat.py +103 -0
- sage/features/singular.py +48 -0
- sage/features/sirocco.py +45 -0
- sage/features/sphinx.py +71 -0
- sage/features/standard.py +38 -0
- sage/features/symengine_py.py +44 -0
- sage/features/tdlib.py +38 -0
- sage/features/threejs.py +75 -0
- sage/features/topcom.py +67 -0
- sage/misc/all__sagemath_environment.py +2 -0
- sage/misc/package.py +570 -0
- sage/misc/package_dir.py +621 -0
- sage/misc/temporary_file.py +546 -0
- sage/misc/viewer.py +369 -0
- sage/version.py +5 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
# sage_setup: distribution = sagemath-environment
|
2
|
+
r"""
|
3
|
+
Feature for testing the presence of ``jupymake``, the Python interface to polymake
|
4
|
+
"""
|
5
|
+
|
6
|
+
# *****************************************************************************
|
7
|
+
# Copyright (C) 2021 Matthias Koeppe
|
8
|
+
#
|
9
|
+
# Distributed under the terms of the GNU General Public License (GPL)
|
10
|
+
# as published by the Free Software Foundation; either version 2 of
|
11
|
+
# the License, or (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 JuPyMake(JoinFeature):
|
20
|
+
r"""
|
21
|
+
A :class:`~sage.features.Feature` describing the presence of the :ref:`JuPyMake <spkg_jupymake>`
|
22
|
+
module, a Python interface to the :ref:`polymake <spkg_polymake>` library.
|
23
|
+
|
24
|
+
EXAMPLES::
|
25
|
+
|
26
|
+
sage: from sage.features.polymake import JuPyMake
|
27
|
+
sage: JuPyMake().is_present() # optional - jupymake
|
28
|
+
FeatureTestResult('jupymake', True)
|
29
|
+
"""
|
30
|
+
def __init__(self):
|
31
|
+
r"""
|
32
|
+
TESTS::
|
33
|
+
|
34
|
+
sage: from sage.features.polymake import JuPyMake
|
35
|
+
sage: isinstance(JuPyMake(), JuPyMake)
|
36
|
+
True
|
37
|
+
"""
|
38
|
+
JoinFeature.__init__(self, "jupymake",
|
39
|
+
[PythonModule("JuPyMake", spkg='jupymake')])
|
40
|
+
|
41
|
+
|
42
|
+
def all_features():
|
43
|
+
return [JuPyMake()]
|
sage/features/poppler.py
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# sage_setup: distribution = sagemath-environment
|
2
|
+
r"""
|
3
|
+
Check for poppler features
|
4
|
+
|
5
|
+
poppler-utils is a collection of tools built on Poppler's library API, to
|
6
|
+
manage PDF and extract contents:
|
7
|
+
|
8
|
+
- ``pdfattach`` -- add a new embedded file (attachment) to an existing PDF
|
9
|
+
- ``pdfdetach`` -- extract embedded documents from a PDF
|
10
|
+
- ``pdffonts`` -- lists the fonts used in a PDF
|
11
|
+
- ``pdfimages`` -- extract all embedded images at native resolution from a PDF
|
12
|
+
- ``pdfinfo`` -- list all information of a PDF
|
13
|
+
- ``pdfseparate`` -- extract single pages from a PDF
|
14
|
+
- ``pdftocairo`` -- convert single pages from a PDF to vector or bitmap formats using cairo
|
15
|
+
- ``pdftohtml`` -- convert PDF to HTML format retaining formatting
|
16
|
+
- ``pdftoppm`` -- convert a PDF page to a bitmap
|
17
|
+
- ``pdftops`` -- convert PDF to printable PS format
|
18
|
+
- ``pdftotext`` -- extract all text from PDF
|
19
|
+
- ``pdfunite`` -- merges several PDF
|
20
|
+
|
21
|
+
Currently we only check for the presence of ``pdftocairo``.
|
22
|
+
"""
|
23
|
+
# ****************************************************************************
|
24
|
+
# Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com>
|
25
|
+
#
|
26
|
+
# This program is free software: you can redistribute it and/or modify
|
27
|
+
# it under the terms of the GNU General Public License as published by
|
28
|
+
# the Free Software Foundation, either version 2 of the License, or
|
29
|
+
# (at your option) any later version.
|
30
|
+
# https://www.gnu.org/licenses/
|
31
|
+
# ****************************************************************************
|
32
|
+
|
33
|
+
from . import Executable
|
34
|
+
|
35
|
+
class pdftocairo(Executable):
|
36
|
+
r"""
|
37
|
+
A :class:`sage.features.Feature` describing the presence of
|
38
|
+
``pdftocairo``
|
39
|
+
|
40
|
+
EXAMPLES::
|
41
|
+
|
42
|
+
sage: from sage.features.poppler import pdftocairo
|
43
|
+
sage: pdftocairo().is_present() # optional: pdftocairo
|
44
|
+
FeatureTestResult('pdftocairo', True)
|
45
|
+
"""
|
46
|
+
def __init__(self):
|
47
|
+
r"""
|
48
|
+
TESTS::
|
49
|
+
|
50
|
+
sage: from sage.features.poppler import pdftocairo
|
51
|
+
sage: isinstance(pdftocairo(), pdftocairo)
|
52
|
+
True
|
53
|
+
"""
|
54
|
+
Executable.__init__(self, "pdftocairo", executable='pdftocairo',
|
55
|
+
url='https://poppler.freedesktop.org/')
|
56
|
+
|
57
|
+
def all_features():
|
58
|
+
return [pdftocairo()]
|
sage/features/rubiks.py
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
# sage_setup: distribution = sagemath-environment
|
2
|
+
r"""
|
3
|
+
Features for testing the presence of ``rubiks``
|
4
|
+
"""
|
5
|
+
# ****************************************************************************
|
6
|
+
# Copyright (C) 2020 John H. Palmieri
|
7
|
+
# 2021-2022 Matthias Koeppe
|
8
|
+
#
|
9
|
+
# This program is free software: you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation, either version 2 of the License, or
|
12
|
+
# (at your option) any later version.
|
13
|
+
# https://www.gnu.org/licenses/
|
14
|
+
# ****************************************************************************
|
15
|
+
|
16
|
+
from sage.env import RUBIKS_BINS_PREFIX
|
17
|
+
|
18
|
+
from . import Executable
|
19
|
+
from .join_feature import JoinFeature
|
20
|
+
|
21
|
+
|
22
|
+
class cu2(Executable):
|
23
|
+
r"""
|
24
|
+
A :class:`~sage.features.Feature` describing the presence of ``cu2``.
|
25
|
+
|
26
|
+
EXAMPLES::
|
27
|
+
|
28
|
+
sage: from sage.features.rubiks import cu2
|
29
|
+
sage: cu2().is_present() # optional - rubiks
|
30
|
+
FeatureTestResult('cu2', True)
|
31
|
+
"""
|
32
|
+
def __init__(self):
|
33
|
+
r"""
|
34
|
+
TESTS::
|
35
|
+
|
36
|
+
sage: from sage.features.rubiks import cu2
|
37
|
+
sage: isinstance(cu2(), cu2)
|
38
|
+
True
|
39
|
+
"""
|
40
|
+
Executable.__init__(self, "cu2", executable=RUBIKS_BINS_PREFIX + "cu2",
|
41
|
+
spkg='rubiks')
|
42
|
+
|
43
|
+
|
44
|
+
class size222(Executable):
|
45
|
+
r"""
|
46
|
+
A :class:`~sage.features.Feature` describing the presence of ``size222``.
|
47
|
+
|
48
|
+
EXAMPLES::
|
49
|
+
|
50
|
+
sage: from sage.features.rubiks import size222
|
51
|
+
sage: size222().is_present() # optional - rubiks
|
52
|
+
FeatureTestResult('size222', True)
|
53
|
+
"""
|
54
|
+
def __init__(self):
|
55
|
+
r"""
|
56
|
+
TESTS::
|
57
|
+
|
58
|
+
sage: from sage.features.rubiks import size222
|
59
|
+
sage: isinstance(size222(), size222)
|
60
|
+
True
|
61
|
+
"""
|
62
|
+
Executable.__init__(self, "size222", executable=RUBIKS_BINS_PREFIX + "size222",
|
63
|
+
spkg='rubiks')
|
64
|
+
|
65
|
+
|
66
|
+
class optimal(Executable):
|
67
|
+
r"""
|
68
|
+
A :class:`~sage.features.Feature` describing the presence of ``optimal``.
|
69
|
+
|
70
|
+
EXAMPLES::
|
71
|
+
|
72
|
+
sage: from sage.features.rubiks import optimal
|
73
|
+
sage: optimal().is_present() # optional - rubiks
|
74
|
+
FeatureTestResult('optimal', True)
|
75
|
+
"""
|
76
|
+
def __init__(self):
|
77
|
+
r"""
|
78
|
+
TESTS::
|
79
|
+
|
80
|
+
sage: from sage.features.rubiks import optimal
|
81
|
+
sage: isinstance(optimal(), optimal)
|
82
|
+
True
|
83
|
+
"""
|
84
|
+
Executable.__init__(self, "optimal", executable=RUBIKS_BINS_PREFIX + "optimal",
|
85
|
+
spkg='rubiks')
|
86
|
+
|
87
|
+
|
88
|
+
class mcube(Executable):
|
89
|
+
r"""
|
90
|
+
A :class:`~sage.features.Feature` describing the presence of ``mcube``.
|
91
|
+
|
92
|
+
EXAMPLES::
|
93
|
+
|
94
|
+
sage: from sage.features.rubiks import mcube
|
95
|
+
sage: mcube().is_present() # optional - rubiks
|
96
|
+
FeatureTestResult('mcube', True)
|
97
|
+
"""
|
98
|
+
def __init__(self):
|
99
|
+
r"""
|
100
|
+
TESTS::
|
101
|
+
|
102
|
+
sage: from sage.features.rubiks import mcube
|
103
|
+
sage: isinstance(mcube(), mcube)
|
104
|
+
True
|
105
|
+
"""
|
106
|
+
Executable.__init__(self, "mcube", executable=RUBIKS_BINS_PREFIX + "mcube",
|
107
|
+
spkg='rubiks')
|
108
|
+
|
109
|
+
|
110
|
+
class dikcube(Executable):
|
111
|
+
r"""
|
112
|
+
A :class:`~sage.features.Feature` describing the presence of ``dikcube``.
|
113
|
+
|
114
|
+
EXAMPLES::
|
115
|
+
|
116
|
+
sage: from sage.features.rubiks import dikcube
|
117
|
+
sage: dikcube().is_present() # optional - rubiks
|
118
|
+
FeatureTestResult('dikcube', True)
|
119
|
+
"""
|
120
|
+
def __init__(self):
|
121
|
+
r"""
|
122
|
+
TESTS::
|
123
|
+
|
124
|
+
sage: from sage.features.rubiks import dikcube
|
125
|
+
sage: isinstance(dikcube(), dikcube)
|
126
|
+
True
|
127
|
+
"""
|
128
|
+
Executable.__init__(self, "dikcube", executable=RUBIKS_BINS_PREFIX + "dikcube",
|
129
|
+
spkg='rubiks')
|
130
|
+
|
131
|
+
|
132
|
+
class cubex(Executable):
|
133
|
+
r"""
|
134
|
+
A :class:`~sage.features.Feature` describing the presence of ``cubex``.
|
135
|
+
|
136
|
+
EXAMPLES::
|
137
|
+
|
138
|
+
sage: from sage.features.rubiks import cubex
|
139
|
+
sage: cubex().is_present() # optional - rubiks
|
140
|
+
FeatureTestResult('cubex', True)
|
141
|
+
"""
|
142
|
+
def __init__(self):
|
143
|
+
r"""
|
144
|
+
TESTS::
|
145
|
+
|
146
|
+
sage: from sage.features.rubiks import cubex
|
147
|
+
sage: isinstance(cubex(), cubex)
|
148
|
+
True
|
149
|
+
"""
|
150
|
+
Executable.__init__(self, "cubex", executable=RUBIKS_BINS_PREFIX + "cubex",
|
151
|
+
spkg='rubiks')
|
152
|
+
|
153
|
+
|
154
|
+
class Rubiks(JoinFeature):
|
155
|
+
r"""
|
156
|
+
A :class:`~sage.features.Feature` describing the presence of the
|
157
|
+
:class:`cu2`, :class:`cubex`, :class:`dikcube`, :class:`mcube`, :class:`optimal`, and
|
158
|
+
:class:`size222` programs from the :ref:`rubiks <spkg_rubiks>` package.
|
159
|
+
|
160
|
+
EXAMPLES::
|
161
|
+
|
162
|
+
sage: from sage.features.rubiks import Rubiks
|
163
|
+
sage: Rubiks().is_present() # optional - rubiks
|
164
|
+
FeatureTestResult('rubiks', True)
|
165
|
+
"""
|
166
|
+
def __init__(self):
|
167
|
+
r"""
|
168
|
+
TESTS::
|
169
|
+
|
170
|
+
sage: from sage.features.rubiks import Rubiks
|
171
|
+
sage: isinstance(Rubiks(), Rubiks)
|
172
|
+
True
|
173
|
+
"""
|
174
|
+
JoinFeature.__init__(self, "rubiks",
|
175
|
+
[cu2(), size222(), optimal(), mcube(), dikcube(), cubex()],
|
176
|
+
spkg='rubiks')
|
177
|
+
|
178
|
+
|
179
|
+
def all_features():
|
180
|
+
return [Rubiks()]
|