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

Mikko Ohtamaa mikko+plone at redinnovation.com
Thu Feb 11 16:20:03 UTC 2010


Hi,

What's the correct way to use paster with buildout (not universal installer
based)?

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
-- 
View this message in context: http://n2.nabble.com/Correct-way-to-use-paster-with-buildout-tp4555533p4555533.html
Sent from the Product Developers mailing list archive at Nabble.com.




More information about the Product-Developers mailing list