Closed zopyx closed 10 years ago
I can verify that this is the case.
Removing (or commenting out) the setup.py
install_requires
listing for plone.namedfile[blobs]
restores the ability to run local commands.
The addition of this requirement is destroying local commands unless a very narrow set of requirements is met. I've not yet pinned down exactly what the circumstances are that make it work, but adding the new dexterity package to instance eggs causes it to fail, where adding the package to buildout eggs sometimes succeeds.
Is this still the case? The official Plone docs now spell out workaround hacks, that's pretty embarrassing :-p
Workaround to fix setup.py
: comment out plone.app.dexterity
and
plone.namedfile [blobs]
:
install_requires=[
'setuptools',
# Comment out the next two lines
#'plone.app.dexterity',
#'plone.namedfile [blobs]',
# -*- Extra requirements: -*-
],
Run the command below to apply the changes made above:
python setup.py develop
Ouch! I'm afraid that document is largely misleading. On my to-do list to clean it up!
On Tue, Oct 7, 2014 at 9:34 PM, Jean Jordaan notifications@github.com wrote:
Is this still the case? The official Plone docs now spell out workaround hacks http://docs.plone.org/develop/addons/dexterity.html#fix-content-generation-in-zopeskel-dexterity, that's pretty embarrassing :-p
— Reply to this email directly or view it on GitHub https://github.com/collective/zopeskel.dexterity/issues/1#issuecomment-58307823 .
@jean +1
zopyx's original bug report is from 2012 and specified Plone 4.1.4 and Dexterity 1.2.1. The current version of zopeskel.dexterity
targets the current Plone (now 4.3.2) and Dexterity 2.x.
I'm not sure what may have been the case, but the current zopeskel.dexterity does create HISTORY.txt
, does create the packaging __init__.py
and does work with local commands with no changes.
Works for me.
Note: the problems people have been having are due to running "python setup.py develop" rather than adding the new package to the buildout. I've added doc notes telling folks not to do that.
Running buildout on a generated skeleton fails because
docs/HISTORY.py
is missing. In addition it does not createsome.package/some/__init__.py
and after fixing the issues manually,paster addcontent
fails:Environment Plone 4.1.4, Dexterity 1.2.1