mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
taking sysconfig out of distutils
This commit is contained in:
parent
c3b0cd75b2
commit
5633a8048f
35 changed files with 1189 additions and 1006 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue