Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread Tarek Ziadé
On Tue, Feb 23, 2010 at 2:55 PM, Thomas Heller thel...@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

Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread Guido van Rossum
On Tue, Feb 23, 2010 at 1:14 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: On Tue, Feb 23, 2010 at 2:55 PM, Thomas Heller thel...@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,

Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread Tarek Ziadé
On Tue, Feb 23, 2010 at 5:04 PM, Guido van Rossum gu...@python.org wrote: On Tue, Feb 23, 2010 at 1:14 PM, Tarek Ziadé ziade.ta...@gmail.com wrote: On Tue, Feb 23, 2010 at 2:55 PM, Thomas Heller thel...@ctypes.org wrote: One of my setup scripts contains:  from distutils.core import

Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread P.J. Eby
At 05:32 PM 2/23/2010 -0500, Tarek Ziadé wrote: 2/ the work done in 2.7 so far was following the usual deprecation process for relocated APIs or removed APIs, but nothing for misplaced import statements. We did discuss this in the past and said it was fine this way. Btw, imports from

Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread Tarek Ziadé
2010/2/23 P.J. Eby p...@telecommunity.com: At 05:32 PM 2/23/2010 -0500, Tarek Ziadé wrote: 2/ the work done in 2.7 so far was following the usual deprecation process for relocated APIs or removed APIs, but nothing for misplaced import statements. We did discuss this in the past and said it

Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread P.J. Eby
At 06:05 PM 2/23/2010 -0500, Tarek Ziadé wrote: Or do you mean that you consider the exception classes located in Distutils to be a common need for people that write setup.py scripts ? A setup script may want to explicitly throw (or catch) distutils errors, and having only one place to import

Re: [Distutils] from distutils.core import DistutilsOptionError

2010-02-23 Thread Tarek Ziadé
On Tue, Feb 23, 2010 at 8:28 PM, P.J. Eby p...@telecommunity.com wrote: At 06:05 PM 2/23/2010 -0500, Tarek Ziadé wrote: Or do you mean that you consider the exception classes located in Distutils to be a common need for people that write setup.py scripts ? A setup script may want to