Commit 696b86d0 authored by Gary Poster's avatar Gary Poster

the most basic change

parent 6c977361
...@@ -58,7 +58,6 @@ Let's try with an unknown version:: ...@@ -58,7 +58,6 @@ Let's try with an unknown version::
... ...
X X
No local packages or download links found for zc.buildout==UNKNOWN... No local packages or download links found for zc.buildout==UNKNOWN...
error: Could not find suitable distribution for Requirement.parse('zc.buildout==UNKNOWN')
... ...
Now let's try with `1.1.2`, which happens to exist:: Now let's try with `1.1.2`, which happens to exist::
......
...@@ -1067,9 +1067,9 @@ def _script(module_name, attrs, path, dest, executable, arguments, ...@@ -1067,9 +1067,9 @@ def _script(module_name, attrs, path, dest, executable, arguments,
return generated return generated
if is_jython and jython_os_name == 'linux': if is_jython and jython_os_name == 'linux':
script_header = '#!/usr/bin/env %(python)s' script_header = '#!/usr/bin/env %(python)s -S'
else: else:
script_header = '#!%(python)s' script_header = '#!%(python)s -S'
script_template = script_header + '''\ script_template = script_header + '''\
......
...@@ -581,7 +581,7 @@ interpreter and without having to provide a '.py' suffix. ...@@ -581,7 +581,7 @@ interpreter and without having to provide a '.py' suffix.
The demo script run the entry point defined in the demo egg: The demo script run the entry point defined in the demo egg:
>>> cat(bin, 'demo') # doctest: +NORMALIZE_WHITESPACE >>> cat(bin, 'demo') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
...@@ -618,7 +618,7 @@ rather than passing a requirement: ...@@ -618,7 +618,7 @@ rather than passing a requirement:
... ws, sys.executable, bin) ... ws, sys.executable, bin)
>>> cat(bin, 'demo') # doctest: +NORMALIZE_WHITESPACE >>> cat(bin, 'demo') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
...@@ -662,7 +662,7 @@ The py script simply runs the Python interactive interpreter with ...@@ -662,7 +662,7 @@ The py script simply runs the Python interactive interpreter with
the path set: the path set:
>>> cat(bin, 'py') # doctest: +NORMALIZE_WHITESPACE >>> cat(bin, 'py') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
<BLANKLINE> <BLANKLINE>
...@@ -748,7 +748,7 @@ to be included in the a generated script: ...@@ -748,7 +748,7 @@ to be included in the a generated script:
... extra_paths=[foo]) ... extra_paths=[foo])
>>> cat(bin, 'run') # doctest: +NORMALIZE_WHITESPACE >>> cat(bin, 'run') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
...@@ -774,7 +774,7 @@ parentheses in the call: ...@@ -774,7 +774,7 @@ parentheses in the call:
... arguments='1, 2') ... arguments='1, 2')
>>> cat(bin, 'run') # doctest: +NORMALIZE_WHITESPACE >>> cat(bin, 'run') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
'/sample-install/demo-0.3-py2.4.egg', '/sample-install/demo-0.3-py2.4.egg',
...@@ -797,7 +797,7 @@ You can also pass script initialization code: ...@@ -797,7 +797,7 @@ You can also pass script initialization code:
... initialization='import os\nos.chdir("foo")') ... initialization='import os\nos.chdir("foo")')
>>> cat(bin, 'run') # doctest: +NORMALIZE_WHITESPACE >>> cat(bin, 'run') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
'/sample-install/demo-0.3-py2.4.egg', '/sample-install/demo-0.3-py2.4.egg',
...@@ -837,7 +837,7 @@ to pass a common base directory of the scripts and eggs: ...@@ -837,7 +837,7 @@ to pass a common base directory of the scripts and eggs:
... relative_paths=bo) ... relative_paths=bo)
>>> cat(bo, 'bin', 'run') >>> cat(bo, 'bin', 'run')
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import os import os
<BLANKLINE> <BLANKLINE>
...@@ -869,7 +869,7 @@ Of course, running the script works: ...@@ -869,7 +869,7 @@ Of course, running the script works:
We specified an interpreter and its paths are adjusted too: We specified an interpreter and its paths are adjusted too:
>>> cat(bo, 'bin', 'py') >>> cat(bo, 'bin', 'py')
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import os import os
<BLANKLINE> <BLANKLINE>
......
...@@ -81,7 +81,7 @@ new versions found in new releases: ...@@ -81,7 +81,7 @@ new versions found in new releases:
Our buildout script has been updated to use the new eggs: Our buildout script has been updated to use the new eggs:
>>> cat(sample_buildout, 'bin', 'buildout') >>> cat(sample_buildout, 'bin', 'buildout')
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
......
...@@ -373,7 +373,7 @@ extra-paths option: ...@@ -373,7 +373,7 @@ extra-paths option:
Let's look at the script that was generated: Let's look at the script that was generated:
>>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE >>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
...@@ -420,7 +420,7 @@ breaking scripts. ...@@ -420,7 +420,7 @@ breaking scripts.
Let's look at the script that was generated: Let's look at the script that was generated:
>>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE >>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import os import os
<BLANKLINE> <BLANKLINE>
...@@ -467,7 +467,7 @@ each individual script section: ...@@ -467,7 +467,7 @@ each individual script section:
Generated script '/sample-buildout/bin/foo'. Generated script '/sample-buildout/bin/foo'.
>>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE >>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import os import os
<BLANKLINE> <BLANKLINE>
...@@ -520,7 +520,7 @@ to be included in generated scripts: ...@@ -520,7 +520,7 @@ to be included in generated scripts:
Generated script '/sample-buildout/bin/foo'. Generated script '/sample-buildout/bin/foo'.
>>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE >>> cat(sample_buildout, 'bin', 'foo') # doctest: +NORMALIZE_WHITESPACE
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
...@@ -578,7 +578,7 @@ declare entry points using the entry-points option: ...@@ -578,7 +578,7 @@ declare entry points using the entry-points option:
- other - other
>>> cat(sample_buildout, 'bin', 'other') >>> cat(sample_buildout, 'bin', 'other')
#!/usr/local/bin/python2.4 #!/usr/local/bin/python2.4 -S
<BLANKLINE> <BLANKLINE>
import sys import sys
sys.path[0:0] = [ sys.path[0:0] = [
......
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