diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-01-29 11:41:03 +0000 |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-01-29 11:41:03 +0000 |
| commit | 43788cbefa5bf8f9c6fde80b8a25a4c5a35505ef (patch) | |
| tree | 6027766073a5333986ba3cc9b351ef2eb415098f /cygwinccompiler.py | |
| parent | 039104435cf43e73cc6d460637b95aac8ed4ef23 (diff) | |
| download | python-setuptools-git-43788cbefa5bf8f9c6fde80b8a25a4c5a35505ef.tar.gz | |
Merged revisions 77704,77752 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77704 | tarek.ziade | 2010-01-23 10:23:15 +0100 (Sat, 23 Jan 2010) | 1 line
taking sysconfig out of distutils
........
r77752 | tarek.ziade | 2010-01-26 00:19:56 +0100 (Tue, 26 Jan 2010) | 1 line
switched the call order so this call works without suffering from issue #7774
........
Diffstat (limited to 'cygwinccompiler.py')
| -rw-r--r-- | cygwinccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cygwinccompiler.py b/cygwinccompiler.py index 3e2a634f..f381f608 100644 --- a/cygwinccompiler.py +++ b/cygwinccompiler.py @@ -337,7 +337,7 @@ def check_config_h(): # XXX since this function also checks sys.version, it's not strictly a # "pyconfig.h" check -- should probably be renamed... - from distutils import sysconfig + _sysconfig = __import__('sysconfig') # if sys.version contains GCC then python was compiled with GCC, and the # pyconfig.h file should be OK @@ -345,7 +345,7 @@ def check_config_h(): return CONFIG_H_OK, "sys.version mentions 'GCC'" # let's see if __GNUC__ is mentioned in python.h - fn = sysconfig.get_config_h_filename() + fn = _sysconfig.get_config_h_filename() try: with open(fn) as config_h: if "__GNUC__" in config_h.read(): |
