parts/buildout/site.py doesn't honor custom eggs-directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
New
|
Undecided
|
Unassigned |
Bug Description
I define a custom eggs-directory in buildout.cfg, but it isn't honored by the generated script in parts/buildout/
[buildout]
relative-paths = true
# Buildout bug: it doesn't honor custom egg dir this in parts/buildout/
# Until it is fixed we need to use the standard eggs dir.
eggs-directory = var/eggs
This causes a "ImportError: No module named pkg_resources" because site.py will add the wrong egg dir to sys.path and pkg_resources won't be available. Starting at site.py line 255:
def addsitepackages
"""Add site packages, as determined by zc.buildout.
See original_
join = os.path.join
base = os.path.
base = os.path.
base = os.path.
base = os.path.
]
See? eggs directory is wrong and not honoring the one defined in buildout.cfg.
Also reported in https:/ /bugs.launchpad .net/zc. buildout/ +bug/695980