SConstruct (5200:9cfaa7c2f766) SConstruct (5204:6c4fab6c1113)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 315 unchanged lines hidden (view full) ---

324env['SCANNERS'] = scanners
325
326# Platform-specific configuration. Note again that we assume that all
327# builds under a given build root run on the same host platform.
328conf = Configure(env,
329 conf_dir = joinpath(build_root, '.scons_config'),
330 log_file = joinpath(build_root, 'scons_config.log'))
331
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 315 unchanged lines hidden (view full) ---

324env['SCANNERS'] = scanners
325
326# Platform-specific configuration. Note again that we assume that all
327# builds under a given build root run on the same host platform.
328conf = Configure(env,
329 conf_dir = joinpath(build_root, '.scons_config'),
330 log_file = joinpath(build_root, 'scons_config.log'))
331
332# Recent versions of scons substitute a "Null" object for Configure()
333# when configuration isn't necessary, e.g., if the "--help" option is
334# present. Unfortuantely this Null object always returns false,
335# breaking all our configuration checks. We replace it with our own
336# more optimistic null object that returns True instead.
337if not conf:
338 def NullCheck(*args, **kwargs):
339 return True
340
341 class NullConf:
342 def __init__(self, env):
343 self.env = env
344 def Finish(self):
345 return self.env
346 def __getattr__(self, mname):
347 return NullCheck
348
349 conf = NullConf(env)
350
332# Find Python include and library directories for embedding the
333# interpreter. For consistency, we will use the same Python
334# installation used to run scons (and thus this script). If you want
335# to link in an alternate version, see above for instructions on how
336# to invoke scons with a different copy of the Python interpreter.
337
338# Get brief Python version name (e.g., "python2.4") for locating
339# include & library files

--- 393 unchanged lines hidden ---
351# Find Python include and library directories for embedding the
352# interpreter. For consistency, we will use the same Python
353# installation used to run scons (and thus this script). If you want
354# to link in an alternate version, see above for instructions on how
355# to invoke scons with a different copy of the Python interpreter.
356
357# Get brief Python version name (e.g., "python2.4") for locating
358# include & library files

--- 393 unchanged lines hidden ---