find-links option ignored when download occurs in offline mode
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=
basemap==0.99.1
$ ls /usr/local/src
basemap-
matplotlib-
$ buildout -vvvo
Installing 'zc.recipe.egg'.
Picked: zc.recipe.egg = 1.1.0
Configuration data:
[mpl]
_b = /tmp/test_
_d = /tmp/test_
_e = /tmp/test_
bin-directory = /tmp/test_
develop-
eggs = %(__buildout_
eggs-directory = /tmp/test_
executable = /usr/bin/python
find-links = /usr/local/src/
interpreter = python
recipe = zc.recipe.egg
[buildout]
bin-directory = /tmp/test_
develop-
directory = /tmp/test_buildout
eggs-directory = /tmp/test_
executable = /usr/bin/python
installed = /tmp/test_
log-format =
log-level = INFO
newest = false
offline = true
parts = mpl
parts-directory = /tmp/test_
python = buildout
verbosity = 30
Installing mpl.
Installing 'matplotlib=
We have no distributions for matplotlib that satisfies 'matplotlib=
#######
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_
_d = /tmp/test_
_e = /tmp/test_
bin-directory = /tmp/test_
develop-
eggs = %(__buildout_
eggs-directory = /tmp/test_
executable = /usr/bin/python
find-links = /usr/local/src/
interpreter = python
recipe = zc.recipe.egg
[buildout]
bin-directory = /tmp/test_
develop-
directory = /tmp/test_buildout
eggs-directory = /tmp/test_
executable = /usr/bin/python
installed = /tmp/test_
log-format =
log-level = INFO
newest = true
offline = false
parts = mpl
parts-directory = /tmp/test_
python = buildout
verbosity = 30
Installing mpl.
Installing 'matplotlib=
We have no distributions for matplotlib that satisfies 'matplotlib=
Getting distribution for 'matplotlib=
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_