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
893fe1bc
Unverified
Commit
893fe1bc
authored
Aug 26, 2021
by
Mathieu Kniewallner
Committed by
GitHub
Aug 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(install-poetry): check for returncode when pip installing Poetry (#4425)
parent
c967a4a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
install-poetry.py
+5
-4
No files found.
install-poetry.py
View file @
893fe1bc
...
@@ -439,8 +439,9 @@ class Installer:
...
@@ -439,8 +439,9 @@ class Installer:
try
:
try
:
self
.
install
(
version
)
self
.
install
(
version
)
except
subprocess
.
CalledProcessError
as
e
:
except
subprocess
.
CalledProcessError
as
e
:
print
(
colorize
(
"error"
,
"An error has occured: {}"
.
format
(
str
(
e
))))
print
(
print
(
e
.
output
.
decode
())
colorize
(
"error"
,
f
"
\n
An error has occurred: {e}
\n
{e.stderr.decode()}"
)
)
return
e
.
returncode
return
e
.
returncode
...
@@ -583,8 +584,8 @@ class Installer:
...
@@ -583,8 +584,8 @@ class Installer:
subprocess
.
run
(
subprocess
.
run
(
[
str
(
python
),
"-m"
,
"pip"
,
"install"
,
specification
],
[
str
(
python
),
"-m"
,
"pip"
,
"install"
,
specification
],
stdout
=
subprocess
.
PIPE
,
capture_output
=
True
,
stderr
=
subprocess
.
STDOUT
,
check
=
True
,
)
)
def
display_pre_message
(
self
)
->
None
:
def
display_pre_message
(
self
)
->
None
:
...
...
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