Skip to content

Commit c189f01

Browse files
author
Matt Shepard
committed
Update pip flags in esp_merge_bin script.
1 parent 3b5a366 commit c189f01

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/esp_merge_bin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
missing_pkgs = required_pkgs - installed_pkgs
1717

1818
if missing_pkgs:
19-
env.Execute('$PYTHONEXE -m pip install dulwich --global-option="--pure" --use-pep517')
19+
# As of pip v23.1 the global-options flag has been removed and we should use the config-settings flag instead.
20+
print("Installing dependencies...")
21+
print("Note: If you see an error about an unknown '--config-settings' option, please update pip to the latest version.")
22+
env.Execute('$PYTHONEXE -m pip install dulwich --config-settings "--build-option=--pure" --use-pep517')
2023

2124
from dulwich import porcelain
2225
from dulwich.repo import Repo

0 commit comments

Comments
 (0)