Noam Raphael <[EMAIL PROTECTED]> writes:
> Fredrik Lundh wrote:
> >
> > you can enable new metadata fields in older versions by assigning to
> > the DistributionMetadata structure:
> >
> > try:
> > from distutils.dist import DistributionMetadata
> > DistributionMetadata.package_data = None
> > except:
> > pass
> >
> > setup(
> > ...
> > package_data=...
> > )
> >
> > </F>
>
> I tried this, but it made python2.4 behave like python2.3, and not
> install the package_data files.
>
> Did I do something wrong?
I'm *guessing* should have been something like (untested):
from distutils.dist import DistributionMetadata
try:
DistributionMetadata.classifiers
except AttributeError:
DistributionMetadata.classifiers = None
setup(
...
classifiers=...
)
John
--
http://mail.python.org/mailman/listinfo/python-list