]> granicus.if.org Git - python/commitdiff
reintroduced the names in Distutils for APIs that were relocated
authorTarek Ziadé <ziade.tarek@gmail.com>
Tue, 26 Jan 2010 21:21:54 +0000 (21:21 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Tue, 26 Jan 2010 21:21:54 +0000 (21:21 +0000)
Lib/distutils/sysconfig.py
Lib/distutils/util.py

index bb8b5125e411e617971e25e984dee4a87f1bc631..2d92dabf7b96a2b892fa36fd8055e78f946702e0 100644 (file)
@@ -21,6 +21,15 @@ from warnings import warn
 # 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")
 
index 18d0d2ef4c4167cd864c289f585fc16f2681fe8a..8650d450c3d42ea12fc88018d8f2de79f4c53f6e 100644 (file)
@@ -17,6 +17,10 @@ from distutils.errors import DistutilsByteCompileError
 
 _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.