[Python-Dev] PEP 301: Package Index and Metadata for Distutils
M.-A. Lemburg
mal@lemburg.com
Wed, 04 Dec 2002 10:59:56 +0100
Richard Jones wrote:
> I've implemented all I believe is necessary for the package index to be
> pronounced accepted or not. This includes the last few missing pieces:
>
> - library reference patch against latest CVS
> - distutils/dist.py patch against latest CVS
> - use of distutils.version.LooseVersion sorting in the index database
>
> Where to now? Is there more to do? Should I stop now because it's not worth
> continuing?
I like the idea.
One nit: in order to make the setup.py script work for Python 1.5.2
and up, you should provide a way which let's the distutils
versions of those platforms ignore the classification keyword
argument for setup().
It should be fairly easy, I believe (untested, but you get the picture...):
# Add 'classifiers' support
if sys.version < '2.3:
from distutils.dist import Distribution, translate_longopt
Distribution.display_options.append(
('classifiers', None, "print the list of classifiers (needs Python 2.3)"))
Distribution.display_option_names = map(lambda x: translate_longopt(x[0]),
Distribution.display_options)
setup(...)
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/