find-links option ignored when download occurs in offline mode

Bug #304003 reported by Stephen Pascoe
2
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

If I run a buildout in offline mode where a dependency isn't available a download will be attempted without looking in find-links.

$ cat buildout.cfg
[buildout]
parts = mpl

[mpl]
recipe = zc.recipe.egg
interpreter = python
find-links = /usr/local/src/
eggs =
  matplotlib==0.98.3
  basemap==0.99.1

$ ls /usr/local/src
basemap-0.99.1-py2.5-linux-x86_64.egg
matplotlib-0.98.3-py2.5-linux-x86_64.egg

$ buildout -vvvo
Installing 'zc.recipe.egg'.
Picked: zc.recipe.egg = 1.1.0

Configuration data:
[mpl]
_b = /tmp/test_buildout/bin
_d = /tmp/test_buildout/develop-eggs
_e = /tmp/test_buildout/eggs
bin-directory = /tmp/test_buildout/bin
develop-eggs-directory = /tmp/test_buildout/develop-eggs
eggs = %(__buildout_space_n__)smatplotlib==0.98.3
        basemap==0.99.1
eggs-directory = /tmp/test_buildout/eggs
executable = /usr/bin/python
find-links = /usr/local/src/
interpreter = python
recipe = zc.recipe.egg
[buildout]
bin-directory = /tmp/test_buildout/bin
develop-eggs-directory = /tmp/test_buildout/develop-eggs
directory = /tmp/test_buildout
eggs-directory = /tmp/test_buildout/eggs
executable = /usr/bin/python
installed = /tmp/test_buildout/.installed.cfg
log-format =
log-level = INFO
newest = false
offline = true
parts = mpl
parts-directory = /tmp/test_buildout/parts
python = buildout
verbosity = 30

Installing mpl.
Installing 'matplotlib==0.98.3', 'basemap==0.99.1'.
We have no distributions for matplotlib that satisfies 'matplotlib==0.98.3'.

#####################
At this point the terminal pauses while it downloads matplotlib from sourceforge and attempts to compile it, even though a compiled egg is available in /usr/local/src. The correct behaviour occurs without the offline option:

$ buildout -vvv
 buildout -vvv
Installing 'zc.buildout', 'setuptools'.
We have the best distribution that satisfies 'zc.buildout'.
Picked: zc.buildout = 1.1.1
We have the best distribution that satisfies 'setuptools'.
Picked: setuptools = 0.6c9
Installing 'zc.recipe.egg'.
We have the best distribution that satisfies 'zc.recipe.egg'.
Picked: zc.recipe.egg = 1.1.0

Configuration data:
[mpl]
_b = /tmp/test_buildout/bin
_d = /tmp/test_buildout/develop-eggs
_e = /tmp/test_buildout/eggs
bin-directory = /tmp/test_buildout/bin
develop-eggs-directory = /tmp/test_buildout/develop-eggs
eggs = %(__buildout_space_n__)smatplotlib==0.98.3
        basemap==0.99.1
eggs-directory = /tmp/test_buildout/eggs
executable = /usr/bin/python
find-links = /usr/local/src/
interpreter = python
recipe = zc.recipe.egg
[buildout]
bin-directory = /tmp/test_buildout/bin
develop-eggs-directory = /tmp/test_buildout/develop-eggs
directory = /tmp/test_buildout
eggs-directory = /tmp/test_buildout/eggs
executable = /usr/bin/python
installed = /tmp/test_buildout/.installed.cfg
log-format =
log-level = INFO
newest = true
offline = false
parts = mpl
parts-directory = /tmp/test_buildout/parts
python = buildout
verbosity = 30

Installing mpl.
Installing 'matplotlib==0.98.3', 'basemap==0.99.1'.
We have no distributions for matplotlib that satisfies 'matplotlib==0.98.3'.
Getting distribution for 'matplotlib==0.98.3'.
Got matplotlib 0.98.3.
We have the best distribution that satisfies 'setuptools'.
Picked: setuptools = 0.6c9
We have no distributions for basemap that satisfies 'basemap==0.99.1'.
Getting distribution for 'basemap==0.99.1'.
Got basemap 0.99.1.
Generated interpreter '/tmp/test_buildout/bin/python'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.