diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-01-29 11:46:31 +0000 |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-01-29 11:46:31 +0000 |
| commit | 70ef6e5c8e5729c1f14e57d4423be5d6c72e35e5 (patch) | |
| tree | a13766c488ff276488f80f3f88bbbe534c9c4075 /sysconfig.py | |
| parent | 43788cbefa5bf8f9c6fde80b8a25a4c5a35505ef (diff) | |
| download | python-setuptools-git-70ef6e5c8e5729c1f14e57d4423be5d6c72e35e5.tar.gz | |
Merged revisions 77759,77761 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77759 | tarek.ziade | 2010-01-26 22:21:54 +0100 (Tue, 26 Jan 2010) | 1 line
reintroduced the names in Distutils for APIs that were relocated
........
r77761 | tarek.ziade | 2010-01-26 23:46:15 +0100 (Tue, 26 Jan 2010) | 1 line
added local get_platform/set_platform APIs in distutils.sysconfig
........
Diffstat (limited to 'sysconfig.py')
| -rw-r--r-- | sysconfig.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysconfig.py b/sysconfig.py index 48f22ad7..2561f573 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -25,6 +25,15 @@ from distutils.errors import DistutilsPlatformError # 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") |
