[Python-checkins] r77756 - in python/trunk/Lib/distutils: command/bdist_msi.py tests/test_bdist_msi.py

Tarek Ziadé ziade.tarek at gmail.com
Tue Jan 26 20:09:11 CET 2010


On Tue, Jan 26, 2010 at 8:02 PM, M.-A. Lemburg <mal at egenix.com> wrote:
> Tarek Ziadé wrote:
>> On Tue, Jan 26, 2010 at 7:43 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>> [..]
>>> Are you sure that was me ?
>>
>> Yes, in the First draft of "sysconfig" thread
>
> Sorry about that. No idea what I was thinking.

No worries. So what I am doing is adding back the name that points to the
new locations when the API still exists (but without a deprecation
warning for them)

for instance, in distutils.sysconfig will have:

+# names defined here to keep backward compatibility
+get_python_version = _sysconfig.get_python_version
+get_config_h_filename = _sysconfig.get_config_h_filename
+parse_config_h = _sysconfig.parse_config_h
+get_config_vars = _sysconfig.get_config_vars
+get_config_var = _sysconfig.get_config_var
+from distutils.ccompiler import customize_compiler

And for the APIs that are being deprecated, I am just throwing a
DeprecationWarning.
For the patch problem, I am not sure what's the best way. I think
that's not a huge change for people patching code. What do you suggest
?

Tarek



-- 
Tarek Ziadé | http://ziade.org


More information about the Python-checkins mailing list