python-setuptools: update to 62.6.0

also default to stdlib distutils as the embedded one doesn't support mingw
This commit is contained in:
Naveen M K
2022-07-02 19:27:09 +05:30
parent e66403bdfe
commit b7070596b4
2 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
--- setuptools-62.6.0/_distutils_hack/__init__.py.orig 2022-07-02 19:17:30.834207700 +0530
+++ setuptools-62.6.0/_distutils_hack/__init__.py 2022-07-02 19:18:18.557610400 +0530
@@ -44,7 +44,7 @@
"""
Allow selection of distutils by environment variable.
"""
- which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
return which == 'local'
--- setuptools-62.6.0/setup.py.orig 2022-07-02 19:21:11.701978000 +0530
+++ setuptools-62.6.0/setup.py 2022-07-02 19:21:37.757524100 +0530
@@ -54,7 +54,7 @@
_pth_contents = textwrap.dedent("""
import os
var = 'SETUPTOOLS_USE_DISTUTILS'
- enabled = os.environ.get(var, 'local') == 'local'
+ enabled = os.environ.get(var, 'stdlib') == 'local'
enabled and __import__('_distutils_hack').add_shim()
""").lstrip().replace('\n', '; ')