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
994505df
Unverified
Commit
994505df
authored
May 31, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update get-poetry.py script
parent
8e3692cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
get-poetry.py
+6
-0
No files found.
get-poetry.py
View file @
994505df
...
@@ -231,6 +231,7 @@ class Installer:
...
@@ -231,6 +231,7 @@ class Installer:
# Homebrew Python and possible other installations
# Homebrew Python and possible other installations
# We workaround this issue by temporarily changing
# We workaround this issue by temporarily changing
# the --user directory
# the --user directory
original_user
=
os
.
getenv
(
"PYTHONUSERBASE"
)
os
.
environ
[
"PYTHONUSERBASE"
]
=
dir
os
.
environ
[
"PYTHONUSERBASE"
]
=
dir
self
.
call
(
self
.
call
(
self
.
CURRENT_PYTHON
,
self
.
CURRENT_PYTHON
,
...
@@ -242,6 +243,11 @@ class Installer:
...
@@ -242,6 +243,11 @@ class Installer:
"--ignore-installed"
,
"--ignore-installed"
,
)
)
if
original_user
is
not
None
:
os
.
environ
[
"PYTHONUSERBASE"
]
=
original_user
else
:
del
os
.
environ
[
"PYTHONUSERBASE"
]
# Finding site-package directory
# Finding site-package directory
lib
=
os
.
path
.
join
(
dir
,
"lib"
)
lib
=
os
.
path
.
join
(
dir
,
"lib"
)
lib_python
=
list
(
glob
(
os
.
path
.
join
(
lib
,
"python*"
)))[
0
]
lib_python
=
list
(
glob
(
os
.
path
.
join
(
lib
,
"python*"
)))[
0
]
...
...
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