[Distutils] Installing the dependencies in the develop egg setup.py
Maurits van Rees
m.van.rees at zestsoftware.nl
Wed Aug 31 14:31:50 CEST 2011
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
> extensions = mr.developer
> auto-checkout = <project name>
> develop = src/wsb
> eggs = <project name>
> parts = django
> <project name> = hg <repository URL>
> projectegg = <project name>
> extra-paths = src/
> settings = settings
> and the setup.py in the project
> #! /usr/bin/env python
> from distutils.core import setup
> setup(name='project name',
> version='version number',
> description='description text',
> author_email='lgp171188 at gmail.com',
> url='project URL',
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:
recipe = djangorecipe
version = 1.2.4
settings = production
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/
More information about the Distutils-SIG