A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/323361.html below:

Using distutils 2.4 for python 2.3

Using distutils 2.4 for python 2.3 Using distutils 2.4 for python 2.3John J. Lee jjl at pobox.com
Sat Sep 24 06:39:13 EDT 2005
Noam Raphael <noamraph at remove.the.dot.gm.ail.com> 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


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4