passagemath-setup 10.5.43__py3-none-any.whl → 10.6.1rc2__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_setup-10.5.43.dist-info → passagemath_setup-10.6.1rc2.dist-info}/METADATA +2 -3
- {passagemath_setup-10.5.43.dist-info → passagemath_setup-10.6.1rc2.dist-info}/RECORD +12 -12
- sage_setup/__init__.py +4 -2
- sage_setup/autogen/interpreters/internal/generator.py +9 -8
- sage_setup/autogen/interpreters/internal/specs/cdf.py +10 -11
- sage_setup/autogen/interpreters/internal/specs/element.py +0 -1
- sage_setup/autogen/interpreters/internal/specs/python.py +6 -6
- sage_setup/autogen/interpreters/internal/specs/rr.py +0 -2
- sage_setup/command/sage_build_cython.py +1 -2
- sage_setup/util.py +2 -2
- {passagemath_setup-10.5.43.dist-info → passagemath_setup-10.6.1rc2.dist-info}/WHEEL +0 -0
- {passagemath_setup-10.5.43.dist-info → passagemath_setup-10.6.1rc2.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: passagemath-setup
|
3
|
-
Version: 10.
|
3
|
+
Version: 10.6.1rc2
|
4
4
|
Summary: passagemath: Build system of the Sage library
|
5
5
|
Author-email: The Sage Developers <sage-support@googlegroups.com>
|
6
6
|
Maintainer: Matthias Köppe, passagemath contributors
|
@@ -19,14 +19,13 @@ Classifier: Intended Audience :: Science/Research
|
|
19
19
|
Classifier: Operating System :: POSIX
|
20
20
|
Classifier: Operating System :: MacOS :: MacOS X
|
21
21
|
Classifier: Programming Language :: Python :: 3 :: Only
|
22
|
-
Classifier: Programming Language :: Python :: 3.9
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
28
27
|
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
29
|
-
Requires-Python: <3.14,>=3.
|
28
|
+
Requires-Python: <3.14,>=3.10
|
30
29
|
Description-Content-Type: text/x-rst
|
31
30
|
Provides-Extra: autogen
|
32
31
|
Requires-Dist: jinja2; extra == "autogen"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
sage_setup/__init__.py,sha256=
|
1
|
+
sage_setup/__init__.py,sha256=FoNCqleZ2QbyLbnRTj6WG6Bu4vG2OHRxS5oP3UOAyIM,7228
|
2
2
|
sage_setup/cython_options.py,sha256=xqwDB-L_Jr8L5IOwjnkUoEWlGKqR_lG8z9qkuFETlIw,1417
|
3
3
|
sage_setup/excepthook.py,sha256=OG1ff-ctLzA2Kz07NjCkdClFNDfsTBM8n1CXzKGyjwg,1041
|
4
4
|
sage_setup/extensions.py,sha256=Zya8xIx24ayuaHx1w8fbbA7tmry2xhSWfMfFh-I0y2o,500
|
@@ -6,14 +6,14 @@ sage_setup/find.py,sha256=9ycdYx-0y0q9hr5SIS0abh2biK5uvoYL6L7mQ9Mpe7w,17584
|
|
6
6
|
sage_setup/library_order.py,sha256=A-6vD3fnsYzCmeWikNIyhx4MkKSpLLuc2GGsUoxpkGY,1783
|
7
7
|
sage_setup/run_parallel.py,sha256=oCYjzWkjmPhcbOwPzcxMv4ddDCejTWu0cPF8sOelAzg,4523
|
8
8
|
sage_setup/setenv.py,sha256=Ar7GRguVRoyqoSy9ISlrXQK3qYHmC05VzpAEjNmi4vQ,2189
|
9
|
-
sage_setup/util.py,sha256=
|
9
|
+
sage_setup/util.py,sha256=pl_Ti7-R56DD3Ovp2s2dm2qHeH27Vs9QprIDRR75F4Q,1732
|
10
10
|
sage_setup/autogen/__init__.py,sha256=eGPpcqieRTrl5A6yP0XudxfQHo7MHnG4U2fZZDlsY98,435
|
11
11
|
sage_setup/autogen/__main__.py,sha256=XF8mvERZVwBGq77B0msBBmowXocRPXO42WxU4TP9Zag,42
|
12
12
|
sage_setup/autogen/flint_autogen.py,sha256=Lhz-VEkcoCixviFOZc_ibf-YBPfJihiE3EJ9qfYYA0w,832
|
13
13
|
sage_setup/autogen/giacpy-mkkeywords.py,sha256=12UKoHt7zF3zSrZa5CrOAKkCf_bzVXzDCSByvX71kLI,28945
|
14
14
|
sage_setup/autogen/interpreters/__main__.py,sha256=nMSARgo2bTpsi3btfCLw-Gswp4ffnybS96IBDh2Xvug,282
|
15
15
|
sage_setup/autogen/interpreters/internal/__init__.py,sha256=ihzpUinS6AMU_4M54coY5_rXTcvCgu8iI8-xyMHWMwU,10506
|
16
|
-
sage_setup/autogen/interpreters/internal/generator.py,sha256=
|
16
|
+
sage_setup/autogen/interpreters/internal/generator.py,sha256=DZy-QiPfqDWLihPE3aFuN9DMf4q-d08FoaUkvUJQ8-Q,40687
|
17
17
|
sage_setup/autogen/interpreters/internal/instructions.py,sha256=5H6u4jMOscOjQ1rMavioMakeouLuQWfp7Ms1cr4tfzs,16744
|
18
18
|
sage_setup/autogen/interpreters/internal/memory.py,sha256=3NsdUJ74z5Qq_gLbYSQB2TdlhxSOppLE_YtD7MN85Eo,18867
|
19
19
|
sage_setup/autogen/interpreters/internal/storage.py,sha256=4ZZ9WcfAkxaULRwIY1xeYTxKFWJz3QpOyASoUlOq9eo,33967
|
@@ -21,18 +21,18 @@ sage_setup/autogen/interpreters/internal/utils.py,sha256=oTGO0CGtFEegVAVcUPQ0RdH
|
|
21
21
|
sage_setup/autogen/interpreters/internal/specs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
sage_setup/autogen/interpreters/internal/specs/base.py,sha256=W5GDejNmXGDE6PmilNZrRFGPKVomiS-m0weXKmAhFjw,6407
|
23
23
|
sage_setup/autogen/interpreters/internal/specs/cc.py,sha256=miCyMOWuD2AC4MrDLMUCsbfBKF8BzJLpZFNYyBYeV7g,9843
|
24
|
-
sage_setup/autogen/interpreters/internal/specs/cdf.py,sha256=
|
25
|
-
sage_setup/autogen/interpreters/internal/specs/element.py,sha256=
|
26
|
-
sage_setup/autogen/interpreters/internal/specs/python.py,sha256=
|
24
|
+
sage_setup/autogen/interpreters/internal/specs/cdf.py,sha256=gf1Wf8JnUJJvsEirvos1r3OGhPAZnlBI75H6_YiWf8A,9142
|
25
|
+
sage_setup/autogen/interpreters/internal/specs/element.py,sha256=jD4PybHG4IvqiWiD7bS9wG3jz1f9432CZSbEqfgyxh8,5038
|
26
|
+
sage_setup/autogen/interpreters/internal/specs/python.py,sha256=nXQM7P1iLV3m0gdELT_loSdKkLNL92p1k_EMd8vAZsc,11413
|
27
27
|
sage_setup/autogen/interpreters/internal/specs/rdf.py,sha256=7yBppCzalqrVcukyfwtdEcwyPsEiyoOxQPWNCoIiDgA,7228
|
28
|
-
sage_setup/autogen/interpreters/internal/specs/rr.py,sha256=
|
28
|
+
sage_setup/autogen/interpreters/internal/specs/rr.py,sha256=F-FqSWaPkLZ6kKB1BZxUu8_PiwkBYEPYz3wT2e6hv-U,10688
|
29
29
|
sage_setup/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
-
sage_setup/command/sage_build_cython.py,sha256=
|
30
|
+
sage_setup/command/sage_build_cython.py,sha256=tmf8rOYfsJ2ZDbImaWvv1a5u3ynoGSAmZDEcDHF87iA,11861
|
31
31
|
sage_setup/command/sage_build_ext.py,sha256=vKOeuDuZfkoX8k520pNXzk6os9uHH8z_csNGmQY04mc,8591
|
32
32
|
sage_setup/command/sage_build_ext_minimal.py,sha256=dA5MXCTCohHXu6mBCDf_i_0L_YcgG5ApoX7FDCpn_84,1330
|
33
33
|
sage_setup/command/sage_build_py.py,sha256=bzuRHXKnhItGMkjYxZ276jHz030B85lq45Bp6shI9Nw,311
|
34
34
|
sage_setup/command/sage_install.py,sha256=MRArCc0exyqJpVpILvgnM-FNZQ1XJzk-AXIvw5Qxp6U,1340
|
35
|
-
passagemath_setup-10.
|
36
|
-
passagemath_setup-10.
|
37
|
-
passagemath_setup-10.
|
38
|
-
passagemath_setup-10.
|
35
|
+
passagemath_setup-10.6.1rc2.dist-info/METADATA,sha256=lsr8FaibYwajHDzEQcUmNXXaUEwA7qL5Ab8nTgN4SGs,1715
|
36
|
+
passagemath_setup-10.6.1rc2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
37
|
+
passagemath_setup-10.6.1rc2.dist-info/top_level.txt,sha256=CNueJfE_I7DXDeFCPmCEMgfqRRZuufTzxVW0sPkbamc,11
|
38
|
+
passagemath_setup-10.6.1rc2.dist-info/RECORD,,
|
sage_setup/__init__.py
CHANGED
@@ -45,8 +45,9 @@ def sage_setup(distributions, *,
|
|
45
45
|
|
46
46
|
# Work around a Cython problem in Python 3.8.x on macOS
|
47
47
|
# https://github.com/cython/cython/issues/3262
|
48
|
-
|
49
|
-
|
48
|
+
|
49
|
+
import platform
|
50
|
+
if platform.system() == 'Darwin':
|
50
51
|
import multiprocessing
|
51
52
|
multiprocessing.set_start_method('fork', force=True)
|
52
53
|
|
@@ -71,6 +72,7 @@ def sage_setup(distributions, *,
|
|
71
72
|
import setuptools.command.egg_info
|
72
73
|
setuptools.command.egg_info.walk_revctrl = lambda: ()
|
73
74
|
|
75
|
+
import os
|
74
76
|
import sys
|
75
77
|
|
76
78
|
from sage_setup.excepthook import excepthook
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# ***************************************************************************
|
2
2
|
# Copyright (C) 2009 Carl Witty <Carl.Witty@gmail.com>
|
3
3
|
# Copyright (C) 2015 Jeroen Demeyer <jdemeyer@cage.ugent.be>
|
4
4
|
#
|
@@ -6,8 +6,8 @@
|
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
7
7
|
# the Free Software Foundation, either version 2 of the License, or
|
8
8
|
# (at your option) any later version.
|
9
|
-
#
|
10
|
-
|
9
|
+
# https://www.gnu.org/licenses/
|
10
|
+
# ***************************************************************************
|
11
11
|
|
12
12
|
"""Implements the generic interpreter generator."""
|
13
13
|
|
@@ -23,7 +23,7 @@ from .utils import je, indent_lines, reindent_lines as ri
|
|
23
23
|
AUTOGEN_WARN = "Automatically generated by {}. Do not edit!".format(__file__)
|
24
24
|
|
25
25
|
|
26
|
-
class InterpreterGenerator
|
26
|
+
class InterpreterGenerator:
|
27
27
|
r"""
|
28
28
|
This class takes an InterpreterSpec and generates the corresponding
|
29
29
|
C interpreter and Cython wrapper.
|
@@ -464,13 +464,14 @@ class InterpreterGenerator(object):
|
|
464
464
|
],
|
465
465
|
ipow_range={{ s.ipow_range }})
|
466
466
|
"""), s=s, myself=self, types=types, arg_ch=arg_ch,
|
467
|
-
|
468
|
-
|
469
|
-
|
467
|
+
indent_lines=indent_lines, the_call=the_call,
|
468
|
+
the_call_c=the_call_c, do_cleanup=do_cleanup,
|
469
|
+
warn=AUTOGEN_WARN))
|
470
470
|
|
471
471
|
def write_pxd(self, write):
|
472
472
|
r"""
|
473
473
|
Generate the pxd file for the Cython wrapper.
|
474
|
+
|
474
475
|
This function calls its write parameter successively with
|
475
476
|
strings; when these strings are concatenated, the result is
|
476
477
|
the code for the pxd file.
|
@@ -522,7 +523,7 @@ class InterpreterGenerator(object):
|
|
522
523
|
{{ arg_ch.storage_type.c_reference_type() }} result) except 0
|
523
524
|
{% endif %}
|
524
525
|
"""), s=s, myself=self, types=types, indent_lines=indent_lines,
|
525
|
-
|
526
|
+
arg_ch=arg_ch, warn=AUTOGEN_WARN))
|
526
527
|
|
527
528
|
def get_interpreter(self):
|
528
529
|
r"""
|
@@ -186,27 +186,26 @@ class CDFInterpreter(StackInterpreter):
|
|
186
186
|
result = CDF(py_result)
|
187
187
|
retval[0] = CDE_to_dz(result)
|
188
188
|
return 1
|
189
|
-
|
190
189
|
"""[1:])
|
191
190
|
|
192
191
|
instrs = [
|
193
192
|
InstrSpec('load_arg', pg('A[D]', 'S'),
|
194
|
-
|
193
|
+
code='o0 = i0;'),
|
195
194
|
InstrSpec('load_const', pg('C[D]', 'S'),
|
196
|
-
|
195
|
+
code='o0 = i0;'),
|
197
196
|
InstrSpec('return', pg('S', ''),
|
198
|
-
|
197
|
+
code='return i0;'),
|
199
198
|
InstrSpec('py_call', pg('P[D]S@D', 'S'),
|
200
|
-
|
201
|
-
|
199
|
+
uses_error_handler=True,
|
200
|
+
code="""
|
202
201
|
if (!cdf_py_call_helper(i0, n_i1, i1, &o0)) {
|
203
202
|
goto error;
|
204
203
|
}
|
205
204
|
""")
|
206
205
|
]
|
207
|
-
for
|
208
|
-
|
209
|
-
|
206
|
+
for name, op in [('add', '+'), ('sub', '-'),
|
207
|
+
('mul', '*'), ('div', '/'),
|
208
|
+
('truediv', '/')]:
|
210
209
|
instrs.append(instr_infix(name, pg('SS', 'S'), op))
|
211
210
|
instrs.append(instr_funcall_2args('pow', pg('SS', 'S'), 'cpow'))
|
212
211
|
instrs.append(instr_funcall_2args('ipow', pg('SD', 'S'), 'cpow_int'))
|
@@ -216,8 +215,8 @@ if (!cdf_py_call_helper(i0, n_i1, i1, &o0)) {
|
|
216
215
|
for name in ['sqrt', 'sin', 'cos', 'tan',
|
217
216
|
'asin', 'acos', 'atan', 'sinh', 'cosh', 'tanh',
|
218
217
|
'asinh', 'acosh', 'atanh', 'exp', 'log']:
|
219
|
-
instrs.append(instr_unary(name, pg('S',
|
218
|
+
instrs.append(instr_unary(name, pg('S', 'S'), "c%s(i0)" % name))
|
220
219
|
self.instr_descs = instrs
|
221
220
|
self._set_opcodes()
|
222
221
|
# supported for exponents that fit in an int
|
223
|
-
self.ipow_range = (int(-2**31), int(2**31-1))
|
222
|
+
self.ipow_range = (int(-2**31), int(2**31 - 1))
|
@@ -250,15 +250,15 @@ class PythonInterpreter(StackInterpreter):
|
|
250
250
|
|
251
251
|
instrs = [
|
252
252
|
InstrSpec('load_arg', pg('A[D]', 'S'),
|
253
|
-
|
253
|
+
code='o0 = i0; Py_INCREF(o0);'),
|
254
254
|
InstrSpec('load_const', pg('C[D]', 'S'),
|
255
|
-
|
255
|
+
code='o0 = i0; Py_INCREF(o0);'),
|
256
256
|
InstrSpec('return', pg('S', ''),
|
257
|
-
|
258
|
-
|
257
|
+
code='return i0;',
|
258
|
+
handles_own_decref=True),
|
259
259
|
InstrSpec('py_call', pg('C[D]S@D', 'S'),
|
260
|
-
|
261
|
-
|
260
|
+
handles_own_decref=True,
|
261
|
+
code=ri(0, """
|
262
262
|
PyObject *py_args = PyTuple_New(n_i1);
|
263
263
|
if (py_args == NULL) goto error;
|
264
264
|
int i;
|
@@ -167,7 +167,6 @@ class RRInterpreter(StackInterpreter):
|
|
167
167
|
mpfr_set(retval, result.value, MPFR_RNDN)
|
168
168
|
return 1
|
169
169
|
|
170
|
-
|
171
170
|
So instructions where you need to interact with Python can
|
172
171
|
call back into Cython code fairly easily.
|
173
172
|
"""
|
@@ -211,7 +210,6 @@ class RRInterpreter(StackInterpreter):
|
|
211
210
|
cdef RealNumber result = domain(fn(*py_args))
|
212
211
|
mpfr_set(retval, result.value, MPFR_RNDN)
|
213
212
|
return 1
|
214
|
-
|
215
213
|
""")
|
216
214
|
|
217
215
|
instrs = [
|
@@ -104,8 +104,7 @@ class sage_build_cython(Command):
|
|
104
104
|
('force', 'force')]
|
105
105
|
|
106
106
|
# Python 3.5 now has a parallel option as well
|
107
|
-
|
108
|
-
inherit_opts.append(('parallel', 'parallel'))
|
107
|
+
inherit_opts.append(('parallel', 'parallel'))
|
109
108
|
|
110
109
|
self.set_undefined_options('build_ext', *inherit_opts)
|
111
110
|
|
sage_setup/util.py
CHANGED
@@ -13,7 +13,7 @@ Utility functions for building Sage
|
|
13
13
|
# ****************************************************************************
|
14
14
|
|
15
15
|
|
16
|
-
def stable_uniq(L):
|
16
|
+
def stable_uniq(L) -> list:
|
17
17
|
"""
|
18
18
|
Given an iterable L, remove duplicate items from L by keeping only
|
19
19
|
the last occurrence of any item.
|
@@ -32,7 +32,7 @@ def stable_uniq(L):
|
|
32
32
|
return sorted(D, key=lambda item: D[item])
|
33
33
|
|
34
34
|
|
35
|
-
def have_module(name):
|
35
|
+
def have_module(name) -> bool:
|
36
36
|
"""
|
37
37
|
Check whether a Python module named ``name`` can be imported.
|
38
38
|
|
File without changes
|
File without changes
|