New submission from Tres Seaver <tsea...@agendaless.com>:

2.7 has a new DeprecationWarning inside the build_ext command for code
which sets the 'compiler' to anything other than a string or None.
Because the warning occurs within property getter / setters, it needs
to boost the stacklevel for the warning above the default value of 1.
In addition, the setter is called from within '__setattr__', which means
that it needs to be incremented again in that case.

The attached patch does both of these things.

----------
assignee: tarek
components: Distutils
files: python-2.7-distutils_warning.patch
keywords: patch
messages: 97725
nosy: tarek, tseaver
severity: normal
status: open
title: DeprecationWarning from distuils.commands.build_ext needs stacklevel
versions: Python 2.7
Added file: http://bugs.python.org/file15857/python-2.7-distutils_warning.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7694>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to