PEP 301: Package Index and Metadata for Distutils

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? Richard

Richard Jones wrote:
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/

On Wed, 4 Dec 2002 8:59 pm, M.-A. Lemburg wrote:
The documentation of the classifiers keyword will include a specific warning about backwards compatibility. If there no objections, I'll include a code fragment that setup.py authors may use so their setup.py will run under python <2.2.3. Richard

Richard Jones wrote:
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/

On Wed, 4 Dec 2002 8:59 pm, M.-A. Lemburg wrote:
The documentation of the classifiers keyword will include a specific warning about backwards compatibility. If there no objections, I'll include a code fragment that setup.py authors may use so their setup.py will run under python <2.2.3. Richard
participants (2)
-
M.-A. Lemburg
-
Richard Jones