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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
975ecd57
Commit
975ecd57
authored
Aug 20, 2010
by
Gary Poster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another small tweak for mimicing site.py.
parent
5ba1e6ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+3
-1
src/zc/buildout/easy_install.txt
src/zc/buildout/easy_install.txt
+4
-3
No files found.
src/zc/buildout/easy_install.py
View file @
975ecd57
...
...
@@ -1650,6 +1650,8 @@ def _generate_site(dest, working_set, executable, extra_paths=(),
original_path_setup
=
(
addsitedir_namespace_originalpackages_snippet
+
original_path_setup
)
else
:
preamble
=
'
\
n
setuptools_path = None'
egg_path_string
,
relative_preamble
=
_relative_path_and_setup
(
site_path
,
path
,
relative_paths
,
indent_level
=
2
,
omit_os_import
=
True
)
if
relative_preamble
:
...
...
@@ -1699,7 +1701,7 @@ original_path_snippet = '''
%s
]
for path in original_paths:
if path not in known_paths:
if path
== setuptools_path or path
not in known_paths:
addsitedir(path, known_paths)'''
addsitepackages_script
=
'''
\
...
...
src/zc/buildout/easy_install.txt
View file @
975ecd57
...
...
@@ -1277,6 +1277,7 @@ this is very straightforward.
"""Add site packages, as determined by zc.buildout.
<BLANKLINE>
See original_addsitepackages, below, for the original version."""
setuptools_path = None
buildout_paths = [
'/interpreter/eggs/demo-0.3-pyN.N.egg',
'/interpreter/eggs/demoneeded-1.1-pyN.N.egg'
...
...
@@ -1291,7 +1292,7 @@ this is very straightforward.
...
]
for path in original_paths:
if path not in known_paths:
if path
== setuptools_path or path
not in known_paths:
addsitedir(path, known_paths)
return known_paths
<BLANKLINE>
...
...
@@ -1369,7 +1370,7 @@ call to another text fixture to create.
...
]
for path in original_paths:
if path not in known_paths:
if path
== setuptools_path or path
not in known_paths:
addsitedir(path, known_paths)
return known_paths
<BLANKLINE>
...
...
@@ -1434,7 +1435,7 @@ at that result.
...
]
for path in original_paths:
if path not in known_paths:
if path
== setuptools_path or path
not in known_paths:
addsitedir(path, known_paths)
return known_paths
<BLANKLINE>
...
...
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