10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267e3a7 commit c415b73Copy full SHA for c415b73
Lib/test/support/__init__.py
@@ -2466,9 +2466,16 @@ def run_command(cmd):
2466
else:
2467
python = os.path.join(venv, 'bin', python_exe)
2468
2469
+ setuptools_whl = _findwheel('setuptools')
2470
+ whl_filename = os.path.basename(setuptools_whl)
2471
+ setuptools_major = int(whl_filename.split('-')[1].split('.')[0])
2472
+ if setuptools_major >= 71: # we need 70.1+, but that's OK
2473
+ wheels = (setuptools_whl,)
2474
+ else:
2475
+ wheels = (setuptools_whl, _findwheel('wheel'))
2476
cmd = (python, '-X', 'dev',
2477
'-m', 'pip', 'install',
- _findwheel('setuptools'),
2478
+ *wheels,
2479
)
2480
run_command(cmd)
2481
0 commit comments