You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
811 B

  1. --- a/SConstruct
  2. +++ b/SConstruct
  3. @@ -42,7 +42,6 @@ import re
  4. import subprocess
  5. import sys
  6. import time
  7. -from distutils import sysconfig
  8. import SCons
  9. @@ -669,6 +668,7 @@ def GetPythonValue(context, name, imp, e
  10. context.Message('Obtaining Python %s... ' % name)
  11. context.sconf.cached = 0 # Avoid bogus "(cached)"
  12. if not env['target_python']:
  13. + from distutils import sysconfig
  14. status, value = 0, str(eval(expr))
  15. else:
  16. command = [target_python_path, '-c', '%s; print(%s)' % (imp, expr)]
  17. @@ -1218,6 +1218,7 @@ if helping:
  18. # If helping just get usable config info from the local Python
  19. target_python_path = ''
  20. + from distutils import sysconfig
  21. py_config_text = str(eval(PYTHON_CONFIG_CALL))
  22. python_libdir = str(eval(PYTHON_LIBDIR_CALL))