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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
4810b6ff
Commit
4810b6ff
authored
Mar 16, 2013
by
Jim Fulton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #80 from reinout/empty-eggs-interpreter-fix
Empty "eggs=" interpreter fix. Fixes #79
parents
f3347818
08d66abe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
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
+14
-0
No files found.
src/zc/buildout/easy_install.py
View file @
4810b6ff
...
@@ -1168,6 +1168,8 @@ def _pyscript(path, dest, rsetup, initialization=''):
...
@@ -1168,6 +1168,8 @@ def _pyscript(path, dest, rsetup, initialization=''):
dest
+=
'-script.py'
dest
+=
'-script.py'
python
=
_safe_arg
(
sys
.
executable
)
python
=
_safe_arg
(
sys
.
executable
)
if
path
:
path
+=
','
# Courtesy comma at the end of the list.
contents
=
py_script_template
%
dict
(
contents
=
py_script_template
%
dict
(
python
=
python
,
python
=
python
,
...
@@ -1202,7 +1204,7 @@ py_script_template = script_header + '''\
...
@@ -1202,7 +1204,7 @@ py_script_template = script_header + '''\
import sys
import sys
sys.path[0:0] = [
sys.path[0:0] = [
%(path)s
,
%(path)s
]
]
%(initialization)s
%(initialization)s
...
...
src/zc/buildout/easy_install.txt
View file @
4810b6ff
...
@@ -677,6 +677,20 @@ module:
...
@@ -677,6 +677,20 @@ module:
>>> print_(system(join(bin, 'py')+' -m pdb what'), end='')
>>> print_(system(join(bin, 'py')+' -m pdb what'), end='')
Error: what does not exist
Error: what does not exist
An interpreter can also be generated without other eggs:
>>> scripts = zc.buildout.easy_install.scripts(
... [], [], sys.executable, bin, interpreter='py')
>>> cat(bin, 'py') # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
#!/usr/local/bin/python2.7
<BLANKLINE>
import sys
<BLANKLINE>
sys.path[0:0] = [
<BLANKLINE>
]
...
An additional argument can be passed to define which scripts to install
An additional argument can be passed to define which scripts to install
and to provide script names. The argument is a dictionary mapping
and to provide script names. The argument is a dictionary mapping
original script names to new script names.
original script names to new script names.
...
...
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