zopyx
(Andreas Jung)
February 9, 2015, 7:54am
1
I have the wild problem that my xmldirector.plonecore package does not appear as add-ons on the Plone add screen unless I add the package to the instance->zcml option of my buildout - both with Plone 4.3 + 5.0.
The entry point for the autoinclude plugin is present and the namespace_packages is also set correctly
(https://romanofskiat.wordpress.com/2012/09/25/z3c-autoinclude-does-not-automatically-include-a-plone-package/ )
import os
from setuptools import setup, find_packages
version = '2.1.1'
setup(name='xmldirector.plonecore',
version=version,
description="XML-Director ",
long_description=open(os.path.join("docs", "source", "README.rst")).read() + "\n" +
open(os.path.join("docs", "source", "HISTORY.rst")).read(),
# Get more strings from
# http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python",
"Framework :: Plone",
"Framework :: Plone :: 4.3",
"Framework :: Plone :: 5.0",
"Framework :: Plone :: 5.1",
"Framework :: Zope2",
"Topic :: Software Development :: Libraries :: Python Modules",
This file has been truncated. show original
Thoughts?
-aj
thet
(Johannes Raggam)
February 9, 2015, 9:22am
2
you have to change the namespace package from:
namespace_packages=['xmldirector', 'xmldirector.plonecore'],
to:
namespace_packages=['xmldirector', ],
setuptools finds the empty xmldirector namespace, which is a namespace package only and plonecore is a non-empty subpackage within it. https://pythonhosted.org/setuptools/setuptools.html#namespace-packages
1 Like