Commit 0adf58cf authored by jim's avatar jim

Added test that seems to disprove

https://bugs.launchpad.net/zc.buildout/+bug/105081.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@75592 62d5b8a3-27da-0310-9561-8e5933582275
parent e2a22f6a
......@@ -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):
......
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