Merge branch 'fix/tools_pip_upgrade' into 'master'

fix(idf_tools.py): Upgrade pip and setuptools separately

Closes RDT-1054

See merge request espressif/esp-idf!35767
master
Roland Dobai 2024-12-18 20:10:18 +08:00
commit 82c26fd62e
1 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -2660,8 +2660,14 @@ def action_install_python_env(args): # type: ignore
constraint_file = get_constraints(idf_version) if use_constraints else None
info('Upgrading pip and setuptools...')
run_args = [virtualenv_python, '-m', 'pip', 'install', '--upgrade', 'pip', 'setuptools']
info('Upgrading pip...')
run_args = [virtualenv_python, '-m', 'pip', 'install', '--upgrade', 'pip']
if constraint_file:
run_args += ['--constraint', constraint_file]
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
info('Upgrading setuptools...')
run_args = [virtualenv_python, '-m', 'pip', 'install', '--upgrade', 'setuptools']
if constraint_file:
run_args += ['--constraint', constraint_file]
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)