[Python-checkins] r77759 - in python/trunk/Lib/distutils: sysconfig.py util.py
tarek.ziade
python-checkins at python.org
Tue Jan 26 22:21:54 CET 2010
Author: tarek.ziade
Date: Tue Jan 26 22:21:54 2010
New Revision: 77759
Log:
reintroduced the names in Distutils for APIs that were relocated
Modified:
python/trunk/Lib/distutils/sysconfig.py
python/trunk/Lib/distutils/util.py
Modified: python/trunk/Lib/distutils/sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/sysconfig.py (original)
+++ python/trunk/Lib/distutils/sysconfig.py Tue Jan 26 22:21:54 2010
@@ -21,6 +21,15 @@
# to avoid this module to shadow it
_sysconfig = __import__('sysconfig')
+# names defined here to keep backward compatibility
+# for APIs that were relocated
+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
+
_DEPRECATION_MSG = ("distutils.sysconfig.%s is deprecated. "
"Use the APIs provided by the sysconfig module instead")
Modified: python/trunk/Lib/distutils/util.py
==============================================================================
--- python/trunk/Lib/distutils/util.py (original)
+++ python/trunk/Lib/distutils/util.py Tue Jan 26 22:21:54 2010
@@ -17,6 +17,10 @@
_sysconfig = __import__('sysconfig')
+# kept for backward compatibility
+# since this API was relocated
+get_platform = _sysconfig.get_platform
+
def convert_path(pathname):
"""Return 'pathname' as a name that will work on the native filesystem.
More information about the Python-checkins
mailing list