mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
@@ -8,19 +8,12 @@
|
||||
import SCons
|
||||
|
||||
|
||||
@@ -669,6 +668,7 @@ def GetPythonValue(context, name, imp, e
|
||||
context.Message('Obtaining Python %s... ' % name)
|
||||
context.sconf.cached = 0 # Avoid bogus "(cached)"
|
||||
if not env['target_python']:
|
||||
+ from distutils import sysconfig
|
||||
status, value = 0, str(eval(expr))
|
||||
else:
|
||||
command = [target_python_path, '-c', '%s; print(%s)' % (imp, expr)]
|
||||
@@ -1218,6 +1218,7 @@ if helping:
|
||||
@@ -303,7 +302,7 @@ EnsureSConsVersion(2, 3, 0)
|
||||
EnsurePythonVersion(2, 6)
|
||||
|
||||
# If helping just get usable config info from the local Python
|
||||
target_python_path = ''
|
||||
+ from distutils import sysconfig
|
||||
py_config_text = str(eval(PYTHON_CONFIG_CALL))
|
||||
python_libdir = str(eval(PYTHON_LIBDIR_CALL))
|
||||
|
||||
-PYTHON_SYSCONFIG_IMPORT = 'from distutils import sysconfig'
|
||||
+PYTHON_SYSCONFIG_IMPORT = ''
|
||||
|
||||
# Utility productions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user