[Distutils] Can't generate console script with buildout - even when using zc.recipe.egg
Anton Stonor
anton at headnet.dk
Tue Apr 1 17:07:41 CEST 2008
Hi there,
I was hoping a buildout guru could give a hand on this one:
The "RelStorage" package comes as an egg and installing it in a buildout
environment works fine.
However I can't find a way to let buildout generate the zodbconvert
console script that comes with RelStorage.
easy_install RelStorage adds the script fine.
I know you should use zc.recipe.egg in this case, but no result.
The RelStorage setup.py comes with this:
scripts=['scripts/zodbconvert.py']
but no "console_scripts" entry points (maybe that is needed?)
I found a kind-of workaround:
entry-points = zodbconvert=zodbconvert:main
extra-paths =
/home/stonor/projects/mybuildout/eggs/RelStorage-1.0.1-py2.4.egg/EGG-INFO/scripts
But it is annoying to hard code the path to
RelStorage-1.0.1-py2.4.egg/EGG-INFO/scripts.
Is there a way to dynamically look up the path to an egg with bulidout
or a another way to solve my issue?
/Anton Stonor
More information about the Distutils-SIG
mailing list