Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
6437f524
Commit
6437f524
authored
May 19, 2016
by
Last G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get site-packages dirs from site.py too
parent
41d0279e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+5
-0
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+4
-0
No files found.
setuptools/command/easy_install.py
View file @
6437f524
...
...
@@ -1347,6 +1347,11 @@ def get_site_dirs():
if
site
.
ENABLE_USER_SITE
:
sitedirs
.
append
(
site
.
USER_SITE
)
try
:
sitedirs
.
extend
(
site
.
getsitepackages
())
except
AttributeError
:
pass
sitedirs
=
list
(
map
(
normalize_path
,
sitedirs
))
return
sitedirs
...
...
setuptools/tests/test_easy_install.py
View file @
6437f524
...
...
@@ -119,6 +119,10 @@ class TestEasyInstallTest:
with
pytest
.
raises
(
distutils
.
errors
.
DistutilsError
):
cmd
.
cant_write_to_target
()
@
mock
.
patch
(
'site.getsitepackages'
,
lambda
:
[
'/setuptools/test/site-packages'
])
def
test_all_site_dirs
(
self
):
assert
'/setuptools/test/site-packages'
in
ei
.
get_site_dirs
()
class
TestPTHFileWriter
:
def
test_add_from_cwd_site_sets_dirty
(
self
):
...
...
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