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
isaak yansane-sisk
slapos.buildout
Commits
160e0e2d
Commit
160e0e2d
authored
May 06, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test that seems to disprove
https://bugs.launchpad.net/zc.buildout/+bug/105081
.
parent
99e8b0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+53
-0
No files found.
src/zc/buildout/tests.py
View file @
160e0e2d
...
...
@@ -1828,6 +1828,59 @@ def version_requirements_in_build_honored():
'''
def
bug_105081_Specific_egg_versions_are_ignored_when_newer_eggs_are_around
():
"""
Buildout might ignore a specific egg requirement for a recipe:
- Have a newer version of an egg in your eggs directory
- Use 'recipe==olderversion' in your buildout.cfg to request an
older version
Buildout will go and fetch the older version, but it will *use*
the newer version when installing a part with this recipe.
>>> write('buildout.cfg',
... '''
... [buildout]
... parts = x
... find-links = %(sample_eggs)s
...
... [x]
... recipe = zc.recipe.egg
... eggs = demo
... ''' % globals())
>>> print system(buildout),
buildout: Installing x
zc.buildout.easy_install: Getting new distribution for demo
zc.buildout.easy_install: Got demo 0.3
zc.buildout.easy_install: Getting new distribution for demoneeded
zc.buildout.easy_install: Got demoneeded 1.1
>>> print system(join('bin', 'demo')),
3 1
>>> write('buildout.cfg',
... '''
... [buildout]
... parts = x
... find-links = %(sample_eggs)s
...
... [x]
... recipe = zc.recipe.egg
... eggs = demo ==0.1
... ''' % globals())
>>> print system(buildout),
buildout: Uninstalling x
buildout: Installing x
zc.buildout.easy_install: Getting new distribution for demo==0.1
zc.buildout.easy_install: Got demo 0.1
>>> print system(join('bin', 'demo')),
1 1
"""
######################################################################
def
create_sample_eggs
(
test
,
executable
=
sys
.
executable
):
...
...
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