How to override distutils install?

A.M. Kuchling amk at amk.ca
Fri Sep 5 12:20:06 EDT 2003


On Fri, 5 Sep 2003 09:35:39 -0500, 
	Skip Montanaro <skip at pobox.com> wrote:
> I would like to override the distutils install class.  It doesn't look like
> it was designed for that.  Do I have to import distutils.command and

Supply a cmd_class argument to setup(), like this:

setup(name = ...,
      cmdclass = {'build_py': qx_build_py},
     )
     
qx_build_py is a Command subclass that will be used in place of the default
build_py target.

--amk

	      




More information about the Python-list mailing list