Op 30-08-11 11:50, L. Guruprasad schreef:
Hi all,
I am having a develop egg in my buildout setup and its setup.py
specifies a dependency in the install_requires field.
When bin/buildout command is run, the dependencies are not installed.
But when I mention the dependency in the buildout.cfg file, it does gets
installed and becomes available to the environment. Alternatively,
running bin/buildout setup <path to setup.py> file installs the
dependency correctly and it works. What could be the issue here?
Here is my buildout.cfg
<snip>
[buildout]
extensions = mr.developer
auto-checkout = <project name>
develop = src/wsb
eggs = <project name>
parts = django
>
[sources]
<project name> = hg <repository URL>
[django]
recipe=djangorecipe
projectegg = <project name>
extra-paths = src/
settings = settings
</snip>
and the setup.py in the project
<snip>
#! /usr/bin/env python
from distutils.core import setup
setup(name='project name',
version='version number',
description='description text',
author='guruprasad',
author_email='[email protected]',
url='project URL',
install_requires=['recaptcha-client']
)
</snip>
You should have a line 'sources = sources' in the [buildout] section,
otherwise the [sources] section is not used (unless that is the default,
but explicit may be better than implicit here). When you run buildout
do you actually get a 'src/<project name>' directory?
It looks to me like src/wsb is not actually used. You tell buildout
that it can find a development package in src/wsb if it wants to, but I
do not see a section that actually wants to use a package with that name.
Or is 'wsb' the same as 'project name'?
Is 'projectegg' the correct spelling in djangorecipe? I see this in a
buildout config I have here:
[django]
recipe = djangorecipe
version = 1.2.4
settings = production
eggs =
${buildout:eggs}
project = projectname
wsgi = true
This is with djangorecipe 0.20. A colleague made this buildout so I
don't know details about this recipe.
Just some thoughts.
--
Maurits van Rees
Web App Programmer at Zest Software: http://zestsoftware.nl
Personal website: http://maurits.vanrees.org/
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig