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.
Files changed (70) hide show
  1. passagemath_environment-10.4.1.data/scripts/sage +1140 -0
  2. passagemath_environment-10.4.1.data/scripts/sage-env +667 -0
  3. passagemath_environment-10.4.1.data/scripts/sage-num-threads.py +105 -0
  4. passagemath_environment-10.4.1.data/scripts/sage-python +2 -0
  5. passagemath_environment-10.4.1.data/scripts/sage-venv-config +42 -0
  6. passagemath_environment-10.4.1.data/scripts/sage-version.sh +9 -0
  7. passagemath_environment-10.4.1.dist-info/METADATA +76 -0
  8. passagemath_environment-10.4.1.dist-info/RECORD +70 -0
  9. passagemath_environment-10.4.1.dist-info/WHEEL +5 -0
  10. passagemath_environment-10.4.1.dist-info/top_level.txt +1 -0
  11. sage/all__sagemath_environment.py +4 -0
  12. sage/env.py +496 -0
  13. sage/features/__init__.py +981 -0
  14. sage/features/all.py +126 -0
  15. sage/features/bliss.py +85 -0
  16. sage/features/cddlib.py +38 -0
  17. sage/features/coxeter3.py +45 -0
  18. sage/features/csdp.py +83 -0
  19. sage/features/cython.py +38 -0
  20. sage/features/databases.py +302 -0
  21. sage/features/dvipng.py +40 -0
  22. sage/features/ecm.py +42 -0
  23. sage/features/ffmpeg.py +119 -0
  24. sage/features/four_ti_2.py +55 -0
  25. sage/features/fricas.py +66 -0
  26. sage/features/gap.py +86 -0
  27. sage/features/gfan.py +38 -0
  28. sage/features/giac.py +30 -0
  29. sage/features/graph_generators.py +171 -0
  30. sage/features/graphviz.py +117 -0
  31. sage/features/igraph.py +44 -0
  32. sage/features/imagemagick.py +138 -0
  33. sage/features/interfaces.py +256 -0
  34. sage/features/internet.py +65 -0
  35. sage/features/jmol.py +44 -0
  36. sage/features/join_feature.py +146 -0
  37. sage/features/kenzo.py +77 -0
  38. sage/features/latex.py +300 -0
  39. sage/features/latte.py +85 -0
  40. sage/features/lrs.py +164 -0
  41. sage/features/mcqd.py +45 -0
  42. sage/features/meataxe.py +46 -0
  43. sage/features/mip_backends.py +114 -0
  44. sage/features/msolve.py +68 -0
  45. sage/features/nauty.py +70 -0
  46. sage/features/normaliz.py +43 -0
  47. sage/features/palp.py +65 -0
  48. sage/features/pandoc.py +42 -0
  49. sage/features/pdf2svg.py +41 -0
  50. sage/features/phitigra.py +42 -0
  51. sage/features/pkg_systems.py +195 -0
  52. sage/features/polymake.py +43 -0
  53. sage/features/poppler.py +58 -0
  54. sage/features/rubiks.py +180 -0
  55. sage/features/sagemath.py +1205 -0
  56. sage/features/sat.py +103 -0
  57. sage/features/singular.py +48 -0
  58. sage/features/sirocco.py +45 -0
  59. sage/features/sphinx.py +71 -0
  60. sage/features/standard.py +38 -0
  61. sage/features/symengine_py.py +44 -0
  62. sage/features/tdlib.py +38 -0
  63. sage/features/threejs.py +75 -0
  64. sage/features/topcom.py +67 -0
  65. sage/misc/all__sagemath_environment.py +2 -0
  66. sage/misc/package.py +570 -0
  67. sage/misc/package_dir.py +621 -0
  68. sage/misc/temporary_file.py +546 -0
  69. sage/misc/viewer.py +369 -0
  70. 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()]
@@ -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()]
@@ -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()]