We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98f5001 commit c522f6eCopy full SHA for c522f6e
Lib/test/support/__init__.py
@@ -2329,9 +2329,18 @@ def setup_venv_with_pip_setuptools(venv_dir):
2329
else:
2330
python = os.path.join(venv, 'bin', python_exe)
2331
2332
+ setuptools_whl = _findwheel('setuptools')
2333
+ whl_filename = os.path.basename(setuptools_whl)
2334
+ setuptools_major = int(whl_filename.split('-')[1].split('.')[0])
2335
+ if setuptools_major >= 71: # we need 70.1+, but that's OK
2336
+ wheels = (setuptools_whl,)
2337
+ else:
2338
+ wheels = (setuptools_whl, _findwheel('wheel'))
2339
+
2340
cmd = (python, '-X', 'dev',
2341
'-m', 'pip', 'install',
- _findwheel('setuptools'))
2342
+ *wheels,
2343
+ )
2344
if verbose:
2345
print()
2346
print('Run:', ' '.join(cmd))
0 commit comments