How to override distutils install?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Skip Montanaro

    How to override distutils install?

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

    Thx,

    Skip

  • A.M. Kuchling

    #2
    Re: How to override distutils install?

    On Fri, 5 Sep 2003 09:35:39 -0500,
    Skip Montanaro <[email protected] > wrote:[color=blue]
    > 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.comma nd and[/color]

    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


    Comment

    • Skip Montanaro

      #3
      Re: How to override distutils install?

      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

      Comment

      Working...