[Catalog-sig] PyPI's external packages

M.-A. Lemburg mal at egenix.com
Mon May 16 22:07:23 CEST 2011


John J Lee wrote:
> On Mon, 16 May 2011, M.-A. Lemburg wrote:
> 
>> That said, it's easy to get the upload command to use an
>> already created distribution file for the upload: just
>> add a new distutils command which sets .distribution.dist_files
>> to what list of files you want to upload.
> [...]
> 
> "Just" add a new distutils command?  ISTR distutils isn't very open to
> that?  IWBNI if distutils (or some replacement for it -- distutils2?)
> supported this out of the box.

Actually, extending distutils is a lot easier than many people
tend to believe.

Adding a new command or extending an existing
one is done by subclassing from an existing command class and
then registering this new class with distutils using the cmdclass
keyword argument to setup():

    http://docs.python.org/distutils/extending.html?highlight=cmdclass

Adding an option to distutils' upload command class in Python 3.3
would work as well, of course, but takes a lot longer to become
usable for package authors.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 16 2011)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2011-06-20: EuroPython 2011, Florence, Italy               35 days to go

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


More information about the Catalog-SIG mailing list