passagemath-setup 10.5.27__py3-none-any.whl → 10.5.29__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: passagemath-setup
3
- Version: 10.5.27
3
+ Version: 10.5.29
4
4
  Summary: passagemath: Build system of the Sage library
5
5
  Author-email: The Sage Developers <sage-support@googlegroups.com>
6
6
  License: GNU General Public License (GPL) v2 or later
@@ -1,4 +1,4 @@
1
- sage_setup/__init__.py,sha256=uTgYtF0rrrX6lvN-s_RgJ-xbbUeo9sTpve65mOLN8eg,6871
1
+ sage_setup/__init__.py,sha256=WVIY9MryzKdAt0di0ypXfKwZnA_bEAc-UJX3LsKjDQ4,7208
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
@@ -32,7 +32,7 @@ sage_setup/command/sage_build_ext.py,sha256=vKOeuDuZfkoX8k520pNXzk6os9uHH8z_csNG
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.27.dist-info/METADATA,sha256=QRxL1Wi4T-_4SjV6B52opeAYAX5SyFAsdISVWwLtmM0,1338
36
- passagemath_setup-10.5.27.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
37
- passagemath_setup-10.5.27.dist-info/top_level.txt,sha256=CNueJfE_I7DXDeFCPmCEMgfqRRZuufTzxVW0sPkbamc,11
38
- passagemath_setup-10.5.27.dist-info/RECORD,,
35
+ passagemath_setup-10.5.29.dist-info/METADATA,sha256=umQ-ti_qIbaXhpfDkmFvmFEaVvkEuNO7hjACiSsViLU,1338
36
+ passagemath_setup-10.5.29.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
37
+ passagemath_setup-10.5.29.dist-info/top_level.txt,sha256=CNueJfE_I7DXDeFCPmCEMgfqRRZuufTzxVW0sPkbamc,11
38
+ passagemath_setup-10.5.29.dist-info/RECORD,,
sage_setup/__init__.py CHANGED
@@ -3,7 +3,8 @@ def sage_setup(distributions, *,
3
3
  required_modules=(), optional_modules=(),
4
4
  spkgs=(),
5
5
  recurse_packages=('sage',),
6
- package_data=None):
6
+ package_data=None,
7
+ cmdclass=None):
7
8
  r"""
8
9
  Replacement for :func:`setuptools.setup` for building distribution packages of the Sage library
9
10
 
@@ -28,6 +29,8 @@ def sage_setup(distributions, *,
28
29
  * If ``None``, all of ``package_data`` is taken from ``pyproject.toml``.
29
30
 
30
31
  * If a dictionary, use it as package data and ignore ``package_data`` in ``pyproject.toml``.
32
+
33
+ - ``cmdclass` -- ``None`` or a dictionary.
31
34
  """
32
35
  import time
33
36
 
@@ -73,8 +76,12 @@ def sage_setup(distributions, *,
73
76
  from sage_setup.excepthook import excepthook
74
77
  sys.excepthook = excepthook
75
78
 
76
- cmdclass = dict(build_ext=sage_build_ext_minimal,
77
- build_py=sage_build_py)
79
+ if cmdclass is None:
80
+ cmdclass = dict()
81
+ else:
82
+ cmdclass = dict(cmdclass)
83
+ cmdclass.update(dict(build_ext=sage_build_ext_minimal,
84
+ build_py=sage_build_py))
78
85
 
79
86
  sdist = len(sys.argv) > 1 and (sys.argv[1] in ["sdist", "egg_info", "dist_info"])
80
87
 
@@ -132,28 +139,31 @@ def sage_setup(distributions, *,
132
139
 
133
140
  log.info(f"Discovered Python/Cython sources, time: {(time.time() - t):.2f} seconds.")
134
141
 
135
- # from sage_build_cython:
136
- import Cython.Compiler.Options
137
- Cython.Compiler.Options.embed_pos_in_docstring = True
138
- gdb_debug = os.environ.get('SAGE_DEBUG', None) != 'no'
139
-
140
- try:
141
- from Cython.Build import cythonize
142
- from sage.env import cython_aliases, sage_include_directories
143
- from sage.misc.package_dir import cython_namespace_package_support
144
- with cython_namespace_package_support():
145
- extensions = cythonize(
146
- cython_modules,
147
- include_path=sage_include_directories(use_sources=True) + ['.'],
148
- compile_time_env=compile_time_env_variables(),
149
- compiler_directives=compiler_directives(False),
150
- aliases=cython_aliases(),
151
- create_extension=create_extension,
152
- gdb_debug=gdb_debug,
153
- nthreads=4)
154
- except Exception as exception:
155
- log.warn(f"Exception while cythonizing source files: {repr(exception)}")
156
- raise
142
+ if cython_modules:
143
+ # from sage_build_cython:
144
+ import Cython.Compiler.Options
145
+ Cython.Compiler.Options.embed_pos_in_docstring = True
146
+ gdb_debug = os.environ.get('SAGE_DEBUG', None) != 'no'
147
+
148
+ try:
149
+ from Cython.Build import cythonize
150
+ from sage.env import cython_aliases, sage_include_directories
151
+ from sage.misc.package_dir import cython_namespace_package_support
152
+ with cython_namespace_package_support():
153
+ extensions = cythonize(
154
+ cython_modules,
155
+ include_path=sage_include_directories(use_sources=True) + ['.'],
156
+ compile_time_env=compile_time_env_variables(),
157
+ compiler_directives=compiler_directives(False),
158
+ aliases=cython_aliases(),
159
+ create_extension=create_extension,
160
+ gdb_debug=gdb_debug,
161
+ nthreads=4)
162
+ except Exception as exception:
163
+ log.warn(f"Exception while cythonizing source files: {repr(exception)}")
164
+ raise
165
+ else:
166
+ extensions = []
157
167
 
158
168
  kwds = {}
159
169