Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
4bc95fe2
Commit
4bc95fe2
authored
Jul 20, 2013
by
Yusuke Tsutsumi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving some messages, deleting dead code
parent
d2ea054d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
bootstrap/bootstrap.py
bootstrap/bootstrap.py
+4
-7
No files found.
bootstrap/bootstrap.py
View file @
4bc95fe2
...
...
@@ -73,9 +73,11 @@ ez = {}
exec
(
urlopen
(
'https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py'
).
read
(),
ez
)
# ez_setup imports site, which adds site packages
# this will remove them
to ensure that incompata
ible versions
# of setuptools are not in
stalled
# this will remove them
from the path to ensure that incompat
ible versions
# of setuptools are not in
the path
import
site
# inside a virtualenv, there is no 'getsitepackages'.
# We can't remove these reliably
if
hasattr
(
site
,
'getsitepackages'
):
for
sitepackage_path
in
site
.
getsitepackages
():
sys
.
path
[:]
=
[
x
for
x
in
sys
.
path
if
sitepackage_path
not
in
x
]
...
...
@@ -85,11 +87,6 @@ ez['use_setuptools'](**setup_args)
import
setuptools
import
pkg_resources
# inside a virtualenv, there is no 'getsitepackages'.
# We can't remove these reliably
#if hasattr(site, 'getsitepackages'):
# for sitepackage_path in site.getsitepackages():
# sys.path[:] = [x for x in sys.path if sitepackage_path not in x]
# This does not (always?) update the default working set. We will
# do it.
for
path
in
sys
.
path
:
...
...
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