How to override distutils install?

S

Skip Montanaro

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
overwrite its install attribute? I didn't see anything about this sort of
thing in the distutils docs.

Thx,

Skip
 
A

A.M. Kuchling

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
 
S

Skip Montanaro

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

amk> setup(name = ...,
amk> cmdclass = {'build_py': qx_build_py},
amk> )

Much appreciated. I'll see if there's something missing in the docs or if
I just missed what is already there.

S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,646
Members
47,247
Latest member
GabrieleL2

Latest Threads

Top