diff options
author | Gary E. Miller <gem@rellim.com> | 2019-03-29 12:29:49 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-03-29 12:29:49 -0700 |
commit | 9cbf5c3b19016b40e70947ce5789252781ee8a7e (patch) | |
tree | db0fd5829ac21e9e7ef9ba16128e9ad1c839ec05 /SConstruct | |
parent | d791a364913721a63ad36ec87bf546e274e11203 (diff) | |
download | gpsd-9cbf5c3b19016b40e70947ce5789252781ee8a7e.tar.gz |
SConstruct: Lat of the env -> config.env for scons 3.0.5
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -984,11 +984,11 @@ else: # Determine if Qt network libraries are present, and # if not, force qt to off - if env["qt"]: - qt_net_name = 'Qt%sNetwork' % env["qt_versioned"] + if config.env["qt"]: + qt_net_name = 'Qt%sNetwork' % config.env["qt_versioned"] qt_network = config.CheckPKG(qt_net_name) if not qt_network: - env["qt"] = False + config.env["qt"] = False announce('Turning off Qt support, library not found.') # If supported by the compiler, enable all warnings except uninitialized @@ -1059,24 +1059,24 @@ if helping: else: - if env['python'] and env['target_python']: + if config.env['python'] and config.env['target_python']: try: config.CheckProg except AttributeError: # Older scons versions don't have CheckProg - target_python_path = env['target_python'] + target_python_path = config.env['target_python'] else: - target_python_path = config.CheckProg(env['target_python']) + target_python_path = config.CheckProg(config.env['target_python']) if not target_python_path: announce("Target Python doesn't exist - disabling Python.") - env['python'] = False - if env['python']: + config.env['python'] = False + if config.env['python']: # Maximize consistency by using the reported sys.executable target_python_path = config.GetPythonValue('exe path', 'import sys', 'sys.executable', brief=cleaning) - if env['python_libdir']: - python_libdir = env['python_libdir'] + if config.env['python_libdir']: + python_libdir = config.env['python_libdir'] else: python_libdir = config.GetPythonValue('lib dir', PYTHON_SYSCONFIG_IMPORT, @@ -1094,9 +1094,10 @@ else: brief=True) -if env['python']: # May have been turned off by error - env['PYTHON'] = polystr(target_python_path) - env['ENV']['PYTHON'] = polystr(target_python_path) # For regress-driver +if config.env['python']: # May have been turned off by error + config.env['PYTHON'] = polystr(target_python_path) + # For regress-driver + config.env['ENV']['PYTHON'] = polystr(target_python_path) py_config_vars = ast.literal_eval(py_config_text.decode()) py_config_vars = [[] if x is None else x for x in py_config_vars] python_config = dict(zip(PYTHON_CONFIG_NAMES, py_config_vars)) |