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
1c45012e
Commit
1c45012e
authored
Dec 24, 2019
by
Frost Ming
Committed by
Sébastien Eustace
Dec 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly handle spaces in executable (#1774)
parent
275d09f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
poetry/utils/env.py
+7
-5
No files found.
poetry/utils/env.py
View file @
1c45012e
...
@@ -190,7 +190,7 @@ class EnvManager(object):
...
@@ -190,7 +190,7 @@ class EnvManager(object):
try
:
try
:
python_version
=
decode
(
python_version
=
decode
(
subprocess
.
check_output
(
subprocess
.
check_output
(
" "
.
join
(
list_to_shell_command
(
[
[
python
,
python
,
"-c"
,
"-c"
,
...
@@ -427,7 +427,7 @@ class EnvManager(object):
...
@@ -427,7 +427,7 @@ class EnvManager(object):
try
:
try
:
python_version
=
decode
(
python_version
=
decode
(
subprocess
.
check_output
(
subprocess
.
check_output
(
" "
.
join
(
list_to_shell_command
(
[
[
python
,
python
,
"-c"
,
"-c"
,
...
@@ -496,7 +496,7 @@ class EnvManager(object):
...
@@ -496,7 +496,7 @@ class EnvManager(object):
if
executable
:
if
executable
:
python_patch
=
decode
(
python_patch
=
decode
(
subprocess
.
check_output
(
subprocess
.
check_output
(
" "
.
join
(
list_to_shell_command
(
[
[
executable
,
executable
,
"-c"
,
"-c"
,
...
@@ -553,7 +553,7 @@ class EnvManager(object):
...
@@ -553,7 +553,7 @@ class EnvManager(object):
try
:
try
:
python_patch
=
decode
(
python_patch
=
decode
(
subprocess
.
check_output
(
subprocess
.
check_output
(
" "
.
join
(
list_to_shell_command
(
[
[
python
,
python
,
"-c"
,
"-c"
,
...
@@ -638,7 +638,9 @@ class EnvManager(object):
...
@@ -638,7 +638,9 @@ class EnvManager(object):
# Create virtualenv by using an external executable
# Create virtualenv by using an external executable
try
:
try
:
p
=
subprocess
.
Popen
(
p
=
subprocess
.
Popen
(
" "
.
join
([
executable
,
"-"
]),
stdin
=
subprocess
.
PIPE
,
shell
=
True
list_to_shell_command
([
executable
,
"-"
]),
stdin
=
subprocess
.
PIPE
,
shell
=
True
,
)
)
p
.
communicate
(
encode
(
CREATE_VENV_COMMAND
.
format
(
path
)))
p
.
communicate
(
encode
(
CREATE_VENV_COMMAND
.
format
(
path
)))
except
CalledProcessError
as
e
:
except
CalledProcessError
as
e
:
...
...
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