[Distutils] from distutils.core import DistutilsOptionError

Tarek Ziadé ziade.tarek at gmail.com
Tue Feb 23 22:14:18 CET 2010

On Tue, Feb 23, 2010 at 2:55 PM, Thomas Heller <theller at ctypes.org> wrote:
> One of my setup scripts contains:
>  from distutils.core import DistutilsOptionError
> which doesn't work anymore with Python trunk.  Bug in Python,
> or in my setup script?

This name was imported in distutils.core but never used, so the import
line was removed in trunk, since importing it from core is considered
as a mistake.

you should do :

  from distutils.errors import DistutilsOptionError

Tarek Ziadé | http://ziade.org

More information about the Distutils-SIG mailing list