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
5e478d0d
Unverified
Commit
5e478d0d
authored
Oct 18, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make —dry-run in install disable installation of current package
parent
3e3fd16a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
poetry/console/commands/install.py
+9
-5
No files found.
poetry/console/commands/install.py
View file @
5e478d0d
...
@@ -58,6 +58,15 @@ exist it will look for <comment>pyproject.toml</> and do the same.
...
@@ -58,6 +58,15 @@ exist it will look for <comment>pyproject.toml</> and do the same.
if
return_code
!=
0
:
if
return_code
!=
0
:
return
return_code
return
return_code
self
.
line
(
" - Installing <info>{}</info> (<comment>{}</comment>)"
.
format
(
self
.
poetry
.
package
.
pretty_name
,
self
.
poetry
.
package
.
pretty_version
)
)
if
self
.
option
(
"dry-run"
):
return
0
setup
=
self
.
poetry
.
file
.
parent
/
"setup.py"
setup
=
self
.
poetry
.
file
.
parent
/
"setup.py"
has_setup
=
setup
.
exists
()
has_setup
=
setup
.
exists
()
...
@@ -69,11 +78,6 @@ exist it will look for <comment>pyproject.toml</> and do the same.
...
@@ -69,11 +78,6 @@ exist it will look for <comment>pyproject.toml</> and do the same.
with
setup
.
open
(
"w"
)
as
f
:
with
setup
.
open
(
"w"
)
as
f
:
f
.
write
(
decode
(
builder
.
build_setup
()))
f
.
write
(
decode
(
builder
.
build_setup
()))
self
.
line
(
"Installing <info>{}</info> (<comment>{}</comment>)"
.
format
(
self
.
poetry
.
package
.
pretty_name
,
self
.
poetry
.
package
.
pretty_version
)
)
try
:
try
:
self
.
env
.
run
(
"pip"
,
"install"
,
"-e"
,
str
(
setup
.
parent
),
"--no-deps"
)
self
.
env
.
run
(
"pip"
,
"install"
,
"-e"
,
str
(
setup
.
parent
),
"--no-deps"
)
finally
:
finally
:
...
...
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