Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
bbbd1dc5
Commit
bbbd1dc5
authored
Sep 21, 2022
by
Randy Döring
Committed by
Bjorn Neergaard
Sep 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
executor: update pip first before other (parallel) installs
parent
93e23bcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/poetry/installation/executor.py
+10
-2
No files found.
src/poetry/installation/executor.py
View file @
bbbd1dc5
...
@@ -143,10 +143,18 @@ class Executor:
...
@@ -143,10 +143,18 @@ class Executor:
if
operations
and
(
self
.
_enabled
or
self
.
_dry_run
):
if
operations
and
(
self
.
_enabled
or
self
.
_dry_run
):
self
.
_display_summary
(
operations
)
self
.
_display_summary
(
operations
)
# We group operations by priority
groups
=
itertools
.
groupby
(
operations
,
key
=
lambda
o
:
-
o
.
priority
)
self
.
_sections
=
{}
self
.
_sections
=
{}
self
.
_yanked_warnings
=
[]
self
.
_yanked_warnings
=
[]
# pip has to be installed first without parallelism if we install via pip
for
i
,
op
in
enumerate
(
operations
):
if
op
.
package
.
name
==
"pip"
:
wait
([
self
.
_executor
.
submit
(
self
.
_execute_operation
,
op
)])
del
operations
[
i
]
break
# We group operations by priority
groups
=
itertools
.
groupby
(
operations
,
key
=
lambda
o
:
-
o
.
priority
)
for
_
,
group
in
groups
:
for
_
,
group
in
groups
:
tasks
=
[]
tasks
=
[]
serial_operations
=
[]
serial_operations
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment