[Distutils] setuptools fails to install package data from ZIP distribution
Philipp von Weitershausen
philipp at weitershausen.de
Wed Sep 26 17:39:24 CEST 2007
On 26 Sep 2007, at 16:07 , Chris McDonough wrote:
> In my experience, that's usually a problem that happens when you do
> "python setup.py sdist" using:
> - a setup.py expects that "find_package_data()" will find package
> data based on searching for things
> checked into version control.
> - a source tree that isn't checked out from version control and
> does not have a MANIFEST.in file.
I'm fully aware of the problem you're talking about. However, it
isn't what I'm describing.
In any of the circumstances you mention, the *distribution* won't
include the package data. In my case, it's the installed *egg* that
doesn't include package data. The distribution (created with sdist)
is actually fine, it does include the package data. setuptools just
doesn't install it into the egg.
For example, download and unzip http://pypi.python.org/packages/
You will see it includes all of the extra data files. But when you do
(best done in a virtual-python or virtualenv), you'll find that the
installed egg does not have any of the ZCML files.
More information about the Distutils-SIG