[Product-Developers] Re: Correct way to use paster with buildout?

Alex Clark aclark at aclark.net
Thu Feb 11 22:54:13 UTC 2010


On 2010-02-11, Mikko Ohtamaa <mikko+plone at redinnovation.com> wrote:
>
> Hi,
>
> What's the correct way to use paster with buildout (not universal installer
> based)?

Good question, isn't it just:

      setup_requires=["PasteScript"],
      paster_plugins=["ZopeSkel"],

?

I'm not sure what install_requires has to do with it

> If I add a dependency to the setup.py of the product I am developing:
>
>       install_requires=['setuptools',
>                         # -*- Extra requirements: -*-
>                         'plone.app.jquerytools'
>                         ],
>
> I cannot anymore run paster and use addcontent command:
>
> (py24)moo at murskaamo:~/twinapex/src/mfabrik.app$ paster addcontent
> Traceback (most recent call last):
>   File "/home/moo/py24/bin/paster", line 7, in ?
>     sys.exit(
>   File
> "/home/moo/py24/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py",
> line 73, in run
>     commands = get_commands()
>   File
> "/home/moo/py24/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py",
> line 115, in get_commands
>     plugins = pluginlib.resolve_plugins(plugins)
>   File
> "/home/moo/py24/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/pluginlib.py",
> line 81, in resolve_plugins
>     pkg_resources.require(plugin)
>   File
> "/home/moo/py24/lib/python2.4/site-packages/distribute-0.6.10-py2.4.egg/pkg_resources.py",
> line 648, in require
>     needed = self.resolve(parse_requirements(requirements))
>   File
> "/home/moo/py24/lib/python2.4/site-packages/distribute-0.6.10-py2.4.egg/pkg_resources.py",
> line 546, in resolve
>     raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: plone.app.jquerytools: Not Found for:
> mfabrik.app (did you run python setup.py develop?)
>
>
> -----
> Mikko Ohtamaa
> mFabrik - Freedom Delivered.
>
> Web site - http://mfabrik.com
> Mobile site - http://mfabrik.mobi
> Blog - http://blog.mfabrik.com


-- 
Alex Clark · http://aclark.net
Plone 3.3 Site Admin · http://aclark.net/plone-site-admin





More information about the Product-Developers mailing list