Can I use dist-utils to install a sub-package?

Thomas Heller theller at python.net
Thu May 13 15:22:52 EDT 2004


Christopher Barker <Chris.Barker at noaa.gov> writes:

> HI all,
>
> I'd like to be able to use distutils to install a package within the
> wxPython package:
>
> wx.lib.MyPackage
>
> I want to be able to do this so folks can upgrade a package of mine
> that is in the wxPython library, without changing it's location.
>
> In looking through the distutils docs, it looks like I cannot specify
> a sub-package location for my package, It will only put it in
> site-packages, not site-packages.wx.lib
>
> Is there a way to do this?

You should look into the pkgutil module, which is in Python 2.3.  It is
supposed to support such schemes.  Although I don't know if it requires
changes to wxPython itself.

Thomas





More information about the Python-list mailing list