offline feature doesn't work at Buildout's first run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
New
|
Undecided
|
Unassigned |
Bug Description
[I lost my first - long - message, so here's the short version]
Given this:
buildout.cfg:
[buildout]
develop = .
parts = foo
[foo]
recipe = zc.recipe.egg
eggs =
foo
setup.py:
from setuptools import setup
setup(
name='foo',
)
~/.buildout/
[buildout]
download-cache = /home/jon/
prefer-final = true
unzip = true
newest = false
include-
exec-
$ ls -1 /home/jon/
/home/
/home/
Ends up with:
$ ./bin/buildout -o
Develop: '/tmp/foo/.'
install_dir /tmp/foo/
install_dir /tmp/tmpfvlKcd
While:
Installing.
Getting section foo
Initializing section foo
Installing recipe zc.recipe.egg.
Getting distribution for 'zc.recipe.egg'.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/tmp/foo/
File "/tmp/foo/
File "/tmp/foo/
File "/tmp/foo/
File "/tmp/foo/
File "/tmp/foo/
return installer.
File "/tmp/foo/
for dist in self._get_
File "/tmp/foo/
File "/tmp/foo/
newloc = os.path.join(dest, os.path.
File "/usr/lib/
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
Due to zc/buildout/
if buildout.offline:
>> dest = None
path = [buildout_
else:
dest = buildout_
path = [buildout_
Which seems to be a bug for me. Setting "dest" as in the 'else' clause solves the problem.
tags: | added: offline |
OK, this is a dup of 229678 with more context, though.