Extending distutils?

Martin v. Löwis loewis at informatik.hu-berlin.de
Thu Jun 13 03:40:56 EDT 2002


Martin Sjögren <martin at strakt.com> writes:

> Does anybody have any hints on what I should do?

To extend a command, you subclass the existing command (or write a new
one from scratch), then pass an argument cmdclass to install, like
this:

       # Override certain command classes with our own ones
       cmdclass = {'install_data':install_Data_Files,
                   'bdist_wininst':wininst_request_delete
                   },

HTH,
Martin



More information about the Python-list mailing list