passagemath-setup 10.5.9__py3-none-any.whl → 10.5.12__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.9.dist-info → passagemath_setup-10.5.12.dist-info}/METADATA +1 -1
- {passagemath_setup-10.5.9.dist-info → passagemath_setup-10.5.12.dist-info}/RECORD +14 -14
- sage_setup/autogen/interpreters/internal/instructions.py +2 -0
- sage_setup/autogen/interpreters/internal/memory.py +1 -1
- sage_setup/autogen/interpreters/internal/specs/cc.py +1 -0
- sage_setup/autogen/interpreters/internal/storage.py +1 -0
- sage_setup/command/sage_build_cython.py +1 -0
- sage_setup/command/sage_build_ext.py +1 -0
- sage_setup/excepthook.py +1 -0
- sage_setup/find.py +3 -0
- sage_setup/run_parallel.py +7 -2
- sage_setup/setenv.py +2 -0
- {passagemath_setup-10.5.9.dist-info → passagemath_setup-10.5.12.dist-info}/WHEEL +0 -0
- {passagemath_setup-10.5.9.dist-info → passagemath_setup-10.5.12.dist-info}/top_level.txt +0 -0
@@ -1,11 +1,11 @@
|
|
1
1
|
sage_setup/__init__.py,sha256=uTgYtF0rrrX6lvN-s_RgJ-xbbUeo9sTpve65mOLN8eg,6871
|
2
2
|
sage_setup/cython_options.py,sha256=xqwDB-L_Jr8L5IOwjnkUoEWlGKqR_lG8z9qkuFETlIw,1417
|
3
|
-
sage_setup/excepthook.py,sha256=
|
3
|
+
sage_setup/excepthook.py,sha256=OG1ff-ctLzA2Kz07NjCkdClFNDfsTBM8n1CXzKGyjwg,1041
|
4
4
|
sage_setup/extensions.py,sha256=Zya8xIx24ayuaHx1w8fbbA7tmry2xhSWfMfFh-I0y2o,500
|
5
|
-
sage_setup/find.py,sha256=
|
5
|
+
sage_setup/find.py,sha256=9ycdYx-0y0q9hr5SIS0abh2biK5uvoYL6L7mQ9Mpe7w,17584
|
6
6
|
sage_setup/library_order.py,sha256=A-6vD3fnsYzCmeWikNIyhx4MkKSpLLuc2GGsUoxpkGY,1783
|
7
|
-
sage_setup/run_parallel.py,sha256=
|
8
|
-
sage_setup/setenv.py,sha256=
|
7
|
+
sage_setup/run_parallel.py,sha256=oCYjzWkjmPhcbOwPzcxMv4ddDCejTWu0cPF8sOelAzg,4523
|
8
|
+
sage_setup/setenv.py,sha256=Ar7GRguVRoyqoSy9ISlrXQK3qYHmC05VzpAEjNmi4vQ,2189
|
9
9
|
sage_setup/util.py,sha256=Cf6mCt3BrcQ7A45W4XAUdsLbnFN5S4dM9OguWphcF6c,1716
|
10
10
|
sage_setup/autogen/__init__.py,sha256=eGPpcqieRTrl5A6yP0XudxfQHo7MHnG4U2fZZDlsY98,435
|
11
11
|
sage_setup/autogen/__main__.py,sha256=XF8mvERZVwBGq77B0msBBmowXocRPXO42WxU4TP9Zag,42
|
@@ -14,25 +14,25 @@ sage_setup/autogen/giacpy-mkkeywords.py,sha256=VnMmjuOYdNRlIxVGN835DN5irMNFi3rGL
|
|
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
16
|
sage_setup/autogen/interpreters/internal/generator.py,sha256=B-Ypu_O_2NZ79_uSpyajvZR0g7JJ6vVwTdBBsJ9wMQI,40712
|
17
|
-
sage_setup/autogen/interpreters/internal/instructions.py,sha256=
|
18
|
-
sage_setup/autogen/interpreters/internal/memory.py,sha256=
|
19
|
-
sage_setup/autogen/interpreters/internal/storage.py,sha256=
|
17
|
+
sage_setup/autogen/interpreters/internal/instructions.py,sha256=5H6u4jMOscOjQ1rMavioMakeouLuQWfp7Ms1cr4tfzs,16744
|
18
|
+
sage_setup/autogen/interpreters/internal/memory.py,sha256=3NsdUJ74z5Qq_gLbYSQB2TdlhxSOppLE_YtD7MN85Eo,18867
|
19
|
+
sage_setup/autogen/interpreters/internal/storage.py,sha256=4ZZ9WcfAkxaULRwIY1xeYTxKFWJz3QpOyASoUlOq9eo,33967
|
20
20
|
sage_setup/autogen/interpreters/internal/utils.py,sha256=oTGO0CGtFEegVAVcUPQ0RdHa9O6JJkUCkLfAl2Z7wFA,5004
|
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
|
-
sage_setup/autogen/interpreters/internal/specs/cc.py,sha256=
|
23
|
+
sage_setup/autogen/interpreters/internal/specs/cc.py,sha256=miCyMOWuD2AC4MrDLMUCsbfBKF8BzJLpZFNYyBYeV7g,9843
|
24
24
|
sage_setup/autogen/interpreters/internal/specs/cdf.py,sha256=rotNRev6rVe1JQr4ITR_t1H7RMOImsp3nraMOFExRb0,9153
|
25
25
|
sage_setup/autogen/interpreters/internal/specs/element.py,sha256=AeUul7HuGOLXIdx_UXxPPVYuGqnuVvh96QwHHPjeSME,5039
|
26
26
|
sage_setup/autogen/interpreters/internal/specs/python.py,sha256=56XQCDk_alI0n3kpvzNrPeeIUuB8VdImIOL63wVRfYg,11419
|
27
27
|
sage_setup/autogen/interpreters/internal/specs/rdf.py,sha256=7yBppCzalqrVcukyfwtdEcwyPsEiyoOxQPWNCoIiDgA,7228
|
28
28
|
sage_setup/autogen/interpreters/internal/specs/rr.py,sha256=X8e-HzCRnj5W4e4Gzib3BiLOlPrb-Pk1VTeKyj4JGPU,10690
|
29
29
|
sage_setup/command/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
-
sage_setup/command/sage_build_cython.py,sha256=
|
31
|
-
sage_setup/command/sage_build_ext.py,sha256=
|
30
|
+
sage_setup/command/sage_build_cython.py,sha256=za6spFjbieqduSxSpT4lkeNijK4QVsm0YFOvODfxyfY,11908
|
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.5.
|
36
|
-
passagemath_setup-10.5.
|
37
|
-
passagemath_setup-10.5.
|
38
|
-
passagemath_setup-10.5.
|
35
|
+
passagemath_setup-10.5.12.dist-info/METADATA,sha256=DDjZe_kljopB6IdwZL-PzVR3leH3WDr5SltBWDQSR5c,1288
|
36
|
+
passagemath_setup-10.5.12.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
37
|
+
passagemath_setup-10.5.12.dist-info/top_level.txt,sha256=CNueJfE_I7DXDeFCPmCEMgfqRRZuufTzxVW0sPkbamc,11
|
38
|
+
passagemath_setup-10.5.12.dist-info/RECORD,,
|
@@ -385,6 +385,7 @@ def instr_funcall_1arg_mpfr(name, io, op):
|
|
385
385
|
"""
|
386
386
|
return InstrSpec(name, io, code='%s(o0, i0, MPFR_RNDN);' % op)
|
387
387
|
|
388
|
+
|
388
389
|
def instr_funcall_2args_mpc(name, io, op):
|
389
390
|
r"""
|
390
391
|
A helper function for creating MPC instructions with two inputs
|
@@ -400,6 +401,7 @@ def instr_funcall_2args_mpc(name, io, op):
|
|
400
401
|
"""
|
401
402
|
return InstrSpec(name, io, code='%s(o0, i0, i1, MPC_RNDNN);' % op)
|
402
403
|
|
404
|
+
|
403
405
|
def instr_funcall_1arg_mpc(name, io, op):
|
404
406
|
r"""
|
405
407
|
A helper function for creating MPC instructions with one input
|
sage_setup/excepthook.py
CHANGED
sage_setup/find.py
CHANGED
@@ -172,6 +172,7 @@ def find_python_sources(src_dir, modules=['sage'], distributions=None,
|
|
172
172
|
os.chdir(cwd)
|
173
173
|
return python_packages, python_modules, cython_modules
|
174
174
|
|
175
|
+
|
175
176
|
def filter_cython_sources(src_dir, distributions, exclude_distributions=None):
|
176
177
|
"""
|
177
178
|
Find all Cython modules in the given source directory that belong to the
|
@@ -221,6 +222,7 @@ def filter_cython_sources(src_dir, distributions, exclude_distributions=None):
|
|
221
222
|
|
222
223
|
return files
|
223
224
|
|
225
|
+
|
224
226
|
def _cythonized_dir(src_dir=None, editable_install=None):
|
225
227
|
"""
|
226
228
|
Return the path where Cython-generated files are placed by the build system.
|
@@ -343,6 +345,7 @@ def find_extra_files(src_dir, modules, cythonized_dir, special_filenames=[], *,
|
|
343
345
|
|
344
346
|
return data_files
|
345
347
|
|
348
|
+
|
346
349
|
def installed_files_by_module(site_packages, modules=('sage',)):
|
347
350
|
"""
|
348
351
|
Find all currently installed files
|
sage_setup/run_parallel.py
CHANGED
@@ -22,6 +22,7 @@ import time
|
|
22
22
|
|
23
23
|
keep_going = False
|
24
24
|
|
25
|
+
|
25
26
|
def run_command(cmd):
|
26
27
|
"""
|
27
28
|
INPUT:
|
@@ -35,6 +36,7 @@ def run_command(cmd):
|
|
35
36
|
sys.stdout.flush()
|
36
37
|
return os.system(cmd)
|
37
38
|
|
39
|
+
|
38
40
|
def apply_func_progress(p):
|
39
41
|
"""
|
40
42
|
Given a triple p consisting of a function, value and a string,
|
@@ -49,6 +51,7 @@ def apply_func_progress(p):
|
|
49
51
|
sys.stdout.flush()
|
50
52
|
return p[0](p[1])
|
51
53
|
|
54
|
+
|
52
55
|
def execute_list_of_commands_in_parallel(command_list, nthreads):
|
53
56
|
"""
|
54
57
|
Execute the given list of commands, possibly in parallel, using
|
@@ -83,6 +86,7 @@ def execute_list_of_commands_in_parallel(command_list, nthreads):
|
|
83
86
|
pool.join()
|
84
87
|
process_command_results(result)
|
85
88
|
|
89
|
+
|
86
90
|
def process_command_results(result_values):
|
87
91
|
error = None
|
88
92
|
for r in result_values:
|
@@ -94,6 +98,7 @@ def process_command_results(result_values):
|
|
94
98
|
if error:
|
95
99
|
sys.exit(1)
|
96
100
|
|
101
|
+
|
97
102
|
def execute_list_of_commands(command_list):
|
98
103
|
"""
|
99
104
|
INPUT:
|
@@ -124,10 +129,10 @@ def execute_list_of_commands(command_list):
|
|
124
129
|
nthreads = min(len(command_list), nthreads)
|
125
130
|
nthreads = max(1, nthreads)
|
126
131
|
|
127
|
-
def plural(n,noun):
|
132
|
+
def plural(n, noun):
|
128
133
|
if n == 1:
|
129
134
|
return "1 %s" % noun
|
130
|
-
return "%i %ss" % (n,noun)
|
135
|
+
return "%i %ss" % (n, noun)
|
131
136
|
|
132
137
|
print("Executing %s (using %s)" % (plural(len(command_list),"command"), plural(nthreads,"thread")))
|
133
138
|
execute_list_of_commands_in_parallel(command_list, nthreads)
|
sage_setup/setenv.py
CHANGED
@@ -4,6 +4,7 @@ import os
|
|
4
4
|
import platform
|
5
5
|
from pathlib import Path
|
6
6
|
|
7
|
+
|
7
8
|
def _environ_prepend(var, value, separator=':'):
|
8
9
|
if value:
|
9
10
|
if var in os.environ:
|
@@ -11,6 +12,7 @@ def _environ_prepend(var, value, separator=':'):
|
|
11
12
|
else:
|
12
13
|
os.environ[var] = value
|
13
14
|
|
15
|
+
|
14
16
|
def setenv():
|
15
17
|
from sage.env import SAGE_LOCAL, SAGE_VENV, SAGE_ARCHFLAGS, SAGE_PKG_CONFIG_PATH
|
16
18
|
|
File without changes
|
File without changes
|