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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
888e47d1
Commit
888e47d1
authored
Feb 10, 2010
by
Gary Poster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flow the gary-1 changes through the connected branches
parent
287a7582
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
30 deletions
+36
-30
README.txt
README.txt
+1
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+5
-5
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+6
-2
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+2
-1
zc.recipe.egg_/src/zc/recipe/egg/README.txt
zc.recipe.egg_/src/zc/recipe/egg/README.txt
+2
-2
zc.recipe.egg_/src/zc/recipe/egg/api.txt
zc.recipe.egg_/src/zc/recipe/egg/api.txt
+4
-3
zc.recipe.egg_/src/zc/recipe/egg/custom.txt
zc.recipe.egg_/src/zc/recipe/egg/custom.txt
+9
-9
zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt
zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt
+3
-3
zc.recipe.egg_/src/zc/recipe/egg/tests.py
zc.recipe.egg_/src/zc/recipe/egg/tests.py
+4
-4
No files found.
README.txt
View file @
888e47d1
src/zc/buildout/easy_install.py
View file @
888e47d1
...
...
@@ -495,7 +495,7 @@ class Installer:
if
dist
is
None
:
raise
zc
.
buildout
.
UserError
(
"Couln't download distribution %s."
%
avail
)
"Coul
d
n't download distribution %s."
%
avail
)
if
dist
.
precedence
==
pkg_resources
.
EGG_DIST
:
# It's already an egg, just fetch it into the dest
...
...
@@ -628,9 +628,9 @@ class Installer:
logger
.
debug
(
'Installing %s.'
,
repr
(
specs
)[
1
:
-
1
])
path
=
self
.
_path
dest
=
self
.
_dest
if
dest
is
not
None
and
dest
not
in
path
:
path
.
insert
(
0
,
dest
)
dest
ination
=
self
.
_dest
if
dest
ination
is
not
None
and
destination
not
in
path
:
path
.
insert
(
0
,
dest
ination
)
requirements
=
[
self
.
_constrain
(
pkg_resources
.
Requirement
.
parse
(
spec
))
for
spec
in
specs
]
...
...
@@ -661,7 +661,7 @@ class Installer:
except
pkg_resources
.
DistributionNotFound
,
err
:
[
requirement
]
=
err
requirement
=
self
.
_constrain
(
requirement
)
if
dest
:
if
dest
ination
:
logger
.
debug
(
'Getting required %r'
,
str
(
requirement
))
else
:
logger
.
debug
(
'Adding required %r'
,
str
(
requirement
))
...
...
src/zc/buildout/testing.py
View file @
888e47d1
...
...
@@ -492,10 +492,14 @@ def _normalize_path(match):
path
=
path
[
1
:]
return
'/'
+
path
.
replace
(
os
.
path
.
sep
,
'/'
)
if
sys
.
platform
==
'win32'
:
sep
=
r'[\\/]'
# Windows uses both sometimes.
else
:
sep
=
re
.
escape
(
os
.
path
.
sep
)
normalize_path
=
(
re
.
compile
(
r'''[^'" \t\n\r]+
\
%(sep)s_[T
t][Ee][Ss][Tt]_\
%(sep)s([^
"' \t\n\r]+)'''
%
dict
(
sep
=
os
.
path
.
sep
)),
r'''[^'" \t\n\r]+
%(sep)s_[Tt][Ee][Ss][Tt]_
%(sep)s([^"' \t\n\r]+)'''
%
dict
(
sep
=
sep
)),
_normalize_path
,
)
...
...
src/zc/buildout/tests.py
View file @
888e47d1
...
...
@@ -2880,7 +2880,7 @@ def test_suite():
'
We
have
a
develop
egg
:
zc
.
buildout
X
.
X
.
'),
(re.compile(r'
\\
[
\\
]
?
'), '
/
'),
(re.compile('
WindowsError
'), '
OSError
'),
(re.compile(r'
\
[
Error
17
\
]
Cannot
create
a
file
'
(re.compile(r'
\
[
Error
\
d
+
\
]
Cannot
create
a
file
'
r'
when
that
file
already
exists
:
'),
'
[
Errno
17
]
File
exists
:
'
),
...
...
@@ -2933,6 +2933,7 @@ def test_suite():
(re.compile('
extdemo
[.]
pyd
'), '
extdemo
.
so
'),
(re.compile('
[
-
d
]
setuptools
-
\
S
+
[.]
egg
'), '
setuptools
.
egg
'),
(re.compile(r'
\\
[
\\
]
?
'), '
/
'),
(re.compile(r'
\
#!\S+\bpython\S*'), '#!/usr/bin/python'),
]
+
(
sys
.
version_info
<
(
2
,
5
)
and
[
(
re
.
compile
(
'.*No module named runpy.*'
,
re
.
S
),
''
),
(
re
.
compile
(
'.*usage: pdb.py scriptfile .*'
,
re
.
S
),
''
),
...
...
zc.recipe.egg_/src/zc/recipe/egg/README.txt
View file @
888e47d1
...
...
@@ -46,7 +46,7 @@ We have a link server that has a number of distributions:
<a href="other-1.0-py2.3.egg">other-1.0-py2.3.egg</a><br>
</body></html>
We have a sample buildout. Let's update it
'
s configuration file to
We have a sample buildout. Let's update its configuration file to
install the demo package.
>>> write(sample_buildout, 'buildout.cfg',
...
...
@@ -187,7 +187,7 @@ Let's add an interpreter option:
... interpreter = py-demo
... """ % dict(server=link_server))
Note that we om
m
itted the entry point name from the recipe
Note that we omitted the entry point name from the recipe
specification. We were able to do this because the scripts recipe is
the default entry point for the zc.recipe.egg egg.
...
...
zc.recipe.egg_/src/zc/recipe/egg/api.txt
View file @
888e47d1
...
...
@@ -95,6 +95,7 @@ We can see that the options were augmented with additional data
computed by the egg recipe by looking at .installed.cfg:
>>> cat(sample_buildout, '.installed.cfg')
... # doctest: +NORMALIZE_WHITESPACE
[buildout]
installed_develop_eggs = /sample-buildout/develop-eggs/sample.egg-link
parts = sample-part
...
...
zc.recipe.egg_/src/zc/recipe/egg/custom.txt
View file @
888e47d1
zc.recipe.egg_/src/zc/recipe/egg/selecting-python.txt
View file @
888e47d1
...
...
@@ -24,7 +24,7 @@ We have a link server:
<a href="other-1.0-py2.4.egg">other-1.0-py2.4.egg</a><br>
</body></html>
We have a sample buildout. Let's update it
'
s configuration file to
We have a sample buildout. Let's update its configuration file to
install the demo package using Python 2.4.
>>> write(sample_buildout, 'buildout.cfg',
...
...
zc.recipe.egg_/src/zc/recipe/egg/tests.py
View file @
888e47d1
...
...
@@ -67,7 +67,7 @@ def test_suite():
'setuptools-
\
S+
\
s+'
'zc.buildout-
\
S+
\
s*'
),
'__buildout_signature__ = sample- zc.recipe.egg-'
),
'__buildout_signature__ = sample- zc.recipe.egg-
\
n
'
),
(
re
.
compile
(
'executable = [
\
S ]+py
t
hon
\
S*
'
, re.I),
'
executable
=
python
'),
(re.compile('
find
-
links
=
http
:
//
localhost
:
\
d
+/
'),
...
...
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