diff --git a/src/poetry/installation/executor.py b/src/poetry/installation/executor.py index ebbba0a4d6c..14823b3e430 100644 --- a/src/poetry/installation/executor.py +++ b/src/poetry/installation/executor.py @@ -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