Buildout and depend package installation

I rewrote the question so that it was more correct.

How to point the Buildout to use a dependency packages, not site-packages of python ?

I'm use 'buildout' command and my Buildout checked package eggs.
After that it seen version mismatch by current mr.developer1.37 in /python/site-packages and have a needed mr.developer1.18 as dependency at buildout.cfg. Error throwing.

buildout.cfg by plone.app.theming

[buildout]
extends =
http://dist.plone.org/release/4.1-latest/versions.cfg
http://good-py.appspot.com/release/plone.app.theming/1.0
parts =
lxml
test
instance
zopepy
omelette
paster
develop = .
extensions =
mr.developer
buildout.dumppickedversions
sources = sources
versions = versions
sources-dir = extras
auto-checkout =
plone.app.themingplugins

[versions]
plone.app.theming =
plone.app.themingplugins =
diazo = 1.0.3

[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml==${versions:lxml}

[remotes]
repoze = git://github.com/repoze
lxml = git://github.com/lxml
plone = git://github.com/plone
svn_plone = http://svn.plone.org/svn/plone
collective = git://github.com/collective
svn_collective = http://svn.plone.org/svn/collective

[sources]
diazo = git ${remotes:plone}/diazo.git
plone.resource = git ${remotes:plone}/plone.resource.git
plone.subrequest = git ${remotes:plone}/plone.subrequest.git
plone.transformchain = git ${remotes:plone}/plone.transformchain.git
repoze.xmliter = git ${remotes:repoze}/repoze.xmliter.git
lxml = git ${remotes:lxml}/lxml.git
plone.resourceeditor = git ${remotes:plone}/plone.resourceeditor.git
plone.app.themingplugins = git ${remotes:plone}/plone.app.themingplugins.git
plone.app.caching = git ${remotes:plone}/plone.app.caching.git

[instance]
recipe = plone.recipe.zope2instance
eggs =
plone.app.theming
plone.app.themingplugins
plone.reload
user = admin:admin
resources = ${buildout:directory}/resources

[zopepy]
recipe = zc.recipe.egg
eggs =
plone.app.theming
plone.app.themingplugins
interpreter = zopepy

[test]
recipe = zc.recipe.testrunner
eggs =
diazo [test]
plone.app.theming [test]
plone.app.themingplugins [test]
plone.resource [test]
plone.resourceeditor [test]
plone.subrequest [test]
plone.app.caching [test]
repoze.xmliter
defaults = ['--auto-color', '--auto-progress']

[paster]
recipe = zc.recipe.egg
eggs =
diazo [wsgi]
PasteScript

[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
arguments = ('coverage', 'report')

[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}

Somehow you have mr.developer installed globally. This is going to make your life hard.
Try to clean up your site-packages and try again!

If this doesn't work, then try a virtualenv without site-packages and run run bootstrap within that env.

1 Like

Are you using the Unified Installer? Which OS?

Hi!
Ubuntu uses. Not apply unified installer yet. I do that for creating worked runtime to having knowledge about some plone addons. If unified installer is helpful for development functionalityes I will to use it!

I'm reading and I did separate installation uses virtualenv which install zc.buildout packet.

Needed to clearense are differents between running bootstrap.py and Buildout. I have different results at console now. May be are order of is the main thing ?

as @jaroel mentioned, seems you have mr.developer installed on your system Python; that should not happen.

first, remove the offending mr.developer: just erase the whole egg directory; you don't need it and it should not be there.

now install your Plone 4.1 by bootstrapping Buildout using python bootstrap.py (that was the only documented way at the time).

mr.developer is pinned to 1.18 in the versions.cfg file of your Plone, but you can use a newer one if you want.

also, if you want to use a newer zc.buildout you probably need to update setuptools.

1 Like