We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f8cc4 commit 0c097b7Copy full SHA for 0c097b7
Lib/test/support/__init__.py
@@ -2493,9 +2493,16 @@ def run_command(cmd):
2493
else:
2494
python = os.path.join(venv, 'bin', python_exe)
2495
2496
+ setuptools_whl = _findwheel('setuptools')
2497
+ whl_filename = os.path.basename(setuptools_whl)
2498
+ setuptools_major = int(whl_filename.split('-')[1].split('.')[0])
2499
+ if setuptools_major >= 71: # we need 70.1+, but that's OK
2500
+ wheels = (setuptools_whl,)
2501
+ else:
2502
+ wheels = (setuptools_whl, _findwheel('wheel'))
2503
cmd = (python, '-X', 'dev',
2504
'-m', 'pip', 'install',
- _findwheel('setuptools'),
2505
+ *wheels,
2506
)
2507
run_command(cmd)
2508
0 commit comments