Skip to content

Commit

Permalink
executor: update setuptools first before other (parallel) installs
Browse files Browse the repository at this point in the history
Fixes #7046
  • Loading branch information
sileht committed Mar 22, 2023
1 parent 71b3d6e commit 929b312
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ def execute(self, operations: list[Operation]) -> int:
self._sections = {}
self._yanked_warnings = []

# pip has to be installed first without parallelism if we install via pip
# pip/setuptools has to be installed first without parallelism
# if we install via pip
for i, op in enumerate(operations):
if op.package.name == "pip":
if op.package.name in ("setuptools", "pip"):
wait([self._executor.submit(self._execute_operation, op)])
del operations[i]
break
Expand Down

0 comments on commit 929b312

Please sign in to comment.