z3c.autoinclude does not automatically include a plone package
Something I stumbled over just recently and is a PEBKAC again. What happens if you create a plone package and you always need to explicitly specify the zcml slot for that package? Check the namespace declaration in the setup.py. That means, what I had configured:
namespace_packages=['mooball'], entry_points=""" # -*- Entry points: -*- [z3c.autoinclude.plugin] target = plone """,
But the packages layout was “mooball.portlets.latestcontent”. After digging, I found out that simply the namespace_package is incorrectly declared. Changing it to:
namespace_packages=['mooball', 'mooball.portlets'], entry_points=""" # -*- Entry points: -*- [z3c.autoinclude.plugin] target = plone """,
… got it correctly included via z3c.autoinclude.