Commit 5661e9c2 authored by Reinout van Rees's avatar Reinout van Rees

Added test that verifies #79

parent b6bfb4ff
...@@ -677,6 +677,21 @@ module: ...@@ -677,6 +677,21 @@ 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
#!/usr/local/bin/python2.7
<BLANKLINE>
import sys
<BLANKLINE>
sys.path[0:0] = [
]
<BLANKLINE>
_interactive = True
...
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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment