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
b9ed1f05
Commit
b9ed1f05
authored
Sep 06, 2022
by
Randy Döring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env: prefer "python -m pip" to calling pip directly to allow pip updating itself on Windows
parent
3bdc3972
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/poetry/utils/env.py
+4
-1
No files found.
src/poetry/utils/env.py
View file @
b9ed1f05
...
...
@@ -1393,7 +1393,10 @@ class Env:
raise
NotImplementedError
()
def
get_pip_command
(
self
,
embedded
:
bool
=
False
)
->
list
[
str
]:
return
[
self
.
python
,
self
.
pip_embedded
if
embedded
else
self
.
pip
]
if
embedded
or
not
Path
(
self
.
_bin
(
self
.
_pip_executable
))
.
exists
():
return
[
self
.
python
,
self
.
pip_embedded
]
# run as module so that pip can update itself on Windows
return
[
self
.
python
,
"-m"
,
"pip"
]
def
get_supported_tags
(
self
)
->
list
[
Tag
]:
raise
NotImplementedError
()
...
...
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