[3.12] gh-132415: Update vendored setuptools in `Lib/test/wheeldata
(GH-132887) (GH-135393)
(cherry picked from commit c9f3f5b4ed52d7bed6073ffa39717ece47202558) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
d43cb4f31a
commit
033aa5cfd8
@ -2261,7 +2261,7 @@ def _findwheel(pkgname):
|
|||||||
filenames = os.listdir(wheel_dir)
|
filenames = os.listdir(wheel_dir)
|
||||||
filenames = sorted(filenames, reverse=True) # approximate "newest" first
|
filenames = sorted(filenames, reverse=True) # approximate "newest" first
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
# filename is like 'setuptools-67.6.1-py3-none-any.whl'
|
# filename is like 'setuptools-{version}-py3-none-any.whl'
|
||||||
if not filename.endswith(".whl"):
|
if not filename.endswith(".whl"):
|
||||||
continue
|
continue
|
||||||
prefix = pkgname + '-'
|
prefix = pkgname + '-'
|
||||||
@ -2270,8 +2270,8 @@ def _findwheel(pkgname):
|
|||||||
raise FileNotFoundError(f"No wheel for {pkgname} found in {wheel_dir}")
|
raise FileNotFoundError(f"No wheel for {pkgname} found in {wheel_dir}")
|
||||||
|
|
||||||
|
|
||||||
# Context manager that creates a virtual environment, install setuptools and wheel in it
|
# Context manager that creates a virtual environment, install setuptools in it,
|
||||||
# and returns the path to the venv directory and the path to the python executable
|
# and returns the paths to the venv directory and the python executable
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def setup_venv_with_pip_setuptools_wheel(venv_dir):
|
def setup_venv_with_pip_setuptools_wheel(venv_dir):
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -2294,10 +2294,10 @@ def setup_venv_with_pip_setuptools_wheel(venv_dir):
|
|||||||
else:
|
else:
|
||||||
python = os.path.join(venv, 'bin', python_exe)
|
python = os.path.join(venv, 'bin', python_exe)
|
||||||
|
|
||||||
cmd = [python, '-X', 'dev',
|
cmd = (python, '-X', 'dev',
|
||||||
'-m', 'pip', 'install',
|
'-m', 'pip', 'install',
|
||||||
_findwheel('setuptools'),
|
_findwheel('setuptools'),
|
||||||
_findwheel('wheel')]
|
_findwheel('wheel'))
|
||||||
if verbose:
|
if verbose:
|
||||||
print()
|
print()
|
||||||
print('Run:', ' '.join(cmd))
|
print('Run:', ' '.join(cmd))
|
||||||
|
Binary file not shown.
BIN
Lib/test/wheeldata/setuptools-79.0.1-py3-none-any.whl
Normal file
BIN
Lib/test/wheeldata/setuptools-79.0.1-py3-none-any.whl
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user