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/317894.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.3Fredrik Lundh fredrik at pythonware.com
Fri Sep 23 08:40:47 EDT 2005
Noam Raphael wrote:

> I want to distribute a package. It's compatible with Python 2.3.
> Is there a way to use distutils 2.4 feature package_data, while
> maintaining the distribution compatible with python 2.3 ?

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> 




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