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
696b86d0
Commit
696b86d0
authored
Dec 10, 2009
by
Gary Poster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the most basic change
parent
6c977361
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
17 deletions
+16
-17
src/zc/buildout/bootstrap.txt
src/zc/buildout/bootstrap.txt
+0
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+2
-2
src/zc/buildout/easy_install.txt
src/zc/buildout/easy_install.txt
+8
-8
src/zc/buildout/update.txt
src/zc/buildout/update.txt
+1
-1
zc.recipe.egg_/src/zc/recipe/egg/README.txt
zc.recipe.egg_/src/zc/recipe/egg/README.txt
+5
-5
No files found.
src/zc/buildout/bootstrap.txt
View file @
696b86d0
...
@@ -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::
...
...
src/zc/buildout/easy_install.py
View file @
696b86d0
...
@@ -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
+
'''
\
...
...
src/zc/buildout/easy_install.txt
View file @
696b86d0
...
@@ -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>
...
...
src/zc/buildout/update.txt
View file @
696b86d0
...
@@ -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] = [
...
...
zc.recipe.egg_/src/zc/recipe/egg/README.txt
View file @
696b86d0
...
@@ -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] = [
...
...
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