diff --git a/build/pkgs/configure/checksums.ini b/build/pkgs/configure/checksums.ini index 99e471b97f6..81cf27d70a3 100644 --- a/build/pkgs/configure/checksums.ini +++ b/build/pkgs/configure/checksums.ini @@ -1,4 +1,4 @@ tarball=configure-VERSION.tar.gz -sha1=aa7054a0e6a582d2db1475dc47f63a54e6ac569f -md5=40eab024557ad51e08dfb08e2753a465 -cksum=802824779 +sha1=2e10c6289199a61f8bcf7223187d1c73941e7cf7 +md5=8ed9a9b76fe5ced09e60a2ea9f796cb4 +cksum=2516922817 diff --git a/build/pkgs/configure/package-version.txt b/build/pkgs/configure/package-version.txt index f8291b5f3d7..f5f5147a444 100644 --- a/build/pkgs/configure/package-version.txt +++ b/build/pkgs/configure/package-version.txt @@ -1 +1 @@ -c47788b02a42ef4907a0e61e702fbe9bbef27590 +ab10fe939823febb1f5c3d14400f143631b84f81 diff --git a/src/sage/misc/cython.py b/src/sage/misc/cython.py index 5631cc092e3..c0c803bf943 100644 --- a/src/sage/misc/cython.py +++ b/src/sage/misc/cython.py @@ -421,7 +421,7 @@ def cython(filename, verbose=0, compile_message=False, os.curdir) # This emulates running "setup.py build" with the correct options - dist = Distribution() + # # setuptools plugins considered harmful: # If build isolation is not in use and setuptools_scm is installed, # then its file_finders entry point is invoked, which we don't need. @@ -429,7 +429,12 @@ def cython(filename, verbose=0, compile_message=False, # LookupError: pyproject.toml does not contain a tool.setuptools_scm section # LookupError: setuptools-scm was unable to detect version ... # We just remove all handling of "setuptools.finalize_distribution_options" entry points. - dist._removed = staticmethod(lambda ep: True) + class Distribution_no_finalize_distribution_options(Distribution): + @staticmethod + def _removed(ep): + return True + + dist = Distribution_no_finalize_distribution_options() dist.ext_modules = [ext] dist.include_dirs = includes buildcmd = dist.get_command_obj("build")