[Distutils] Extending distutils with 3rd party build commands?

M.-A. Lemburg mal at egenix.com
Thu Oct 21 01:03:54 CEST 2004

Bob Ippolito wrote:
> On Oct 20, 2004, at 18:10, M.-A. Lemburg wrote:
>> Bob Ippolito wrote:
>>> I've developed two bdist commands (bdist_pkg and bdist_mpkg) for 
>>> usage on OS X.  These commands apply to any setup.py that supports an 
>>> "install" command, similar to bdist_wininst, so it would be nice if 
>>> every setup.py didn't have to explicitly import something in order to 
>>> get the commands there.
>>> I know I can make it work with a pth file that imports bdist_pkg, but 
>>> that seems a bit costly to do because it will end up importing a 
>>> bunch of stuff (distutils, mainly).
>>> Is there another way to do it?
>> Submit them for inclusion in the standard distribution ;-)
> I will, for 2.5... but there's quite some time between now and then.
>> Please use a different name for bdist_pkg, though, since pkg is already
>> used for Solaris binary packages (unless, of course, yours works for
>> Solaris packages as well).
> Well .pkg is used for Mac OS X binary packages too.  Also, the only hit 
> on google for bdist_pkg is a comment I made a couple months ago.  

We once had a bdist_pkgtool in CVS but had to remove it again
due to copyright issues. Dito for bdist_sdux:


Looks like bdist_pkg is OK after all :-) It's a long time
ago I had reviewed those packages.

> Anyhow, the most useful command is bdist_mpkg, which builds 
> metapackages, so I'll call it that and remove the bdist_pkg command if 
> it makes you happy :)

Perhaps bdist_macpkg would be more appropriate if the format
is not compatible with the pkgtool output ?!

Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Oct 20 2004)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

More information about the Distutils-SIG mailing list