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 fe373b7 commit 107abf7Copy full SHA for 107abf7
Lib/test/support/__init__.py
@@ -2468,9 +2468,16 @@ def run_command(cmd):
2468
else:
2469
python = os.path.join(venv, 'bin', python_exe)
2470
2471
+ setuptools_whl = _findwheel('setuptools')
2472
+ whl_filename = os.path.basename(setuptools_whl)
2473
+ setuptools_major = int(whl_filename.split('-')[1].split('.')[0])
2474
+ if setuptools_major >= 71: # we need 70.1+, but that's OK
2475
+ wheels = (setuptools_whl,)
2476
+ else:
2477
+ wheels = (setuptools_whl, _findwheel('wheel'))
2478
cmd = (python, '-X', 'dev',
2479
'-m', 'pip', 'install',
- _findwheel('setuptools'),
2480
+ *wheels,
2481
)
2482
run_command(cmd)
2483
0 commit comments