[Distutils] disable register and upload commands for a setup.py

Phillip J. Eby pje at telecommunity.com
Thu Jul 5 01:09:02 CEST 2007

At 05:18 PM 7/4/2007 -0400, Jeff Kowalczyk wrote:
>What would be the most reliable way to disable, with error output, the
>PyPI 'register' and/or 'upload' commands for a given setup.py?

See the 'cmdclass' argument to distutils.core.setup().  (You can use 
it to specify alternative implementations of 'register' and 'upload', 
that do whatever you want.)

More information about the Distutils-SIG mailing list