SConstruct (7450:2302e04c506e) SConstruct (7457:95160760db54)
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# Copyright (c) 2004-2005 The Regents of The University of Michigan
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are

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

510# interpreter. For consistency, we will use the same Python
511# installation used to run scons (and thus this script). If you want
512# to link in an alternate version, see above for instructions on how
513# to invoke scons with a different copy of the Python interpreter.
514from distutils import sysconfig
515
516py_getvar = sysconfig.get_config_var
517
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# Copyright (c) 2004-2005 The Regents of The University of Michigan
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are

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

510# interpreter. For consistency, we will use the same Python
511# installation used to run scons (and thus this script). If you want
512# to link in an alternate version, see above for instructions on how
513# to invoke scons with a different copy of the Python interpreter.
514from distutils import sysconfig
515
516py_getvar = sysconfig.get_config_var
517
518py_version = 'python' + py_getvar('VERSION')
518py_debug = getattr(sys, 'pydebug', False)
519py_version = 'python' + py_getvar('VERSION') + (py_debug and "_d" or "")
519
520py_general_include = sysconfig.get_python_inc()
521py_platform_include = sysconfig.get_python_inc(plat_specific=True)
522py_includes = [ py_general_include ]
523if py_platform_include != py_general_include:
524 py_includes.append(py_platform_include)
525
526py_lib_path = [ py_getvar('LIBDIR') ]

--- 362 unchanged lines hidden ---
520
521py_general_include = sysconfig.get_python_inc()
522py_platform_include = sysconfig.get_python_inc(plat_specific=True)
523py_includes = [ py_general_include ]
524if py_platform_include != py_general_include:
525 py_includes.append(py_platform_include)
526
527py_lib_path = [ py_getvar('LIBDIR') ]

--- 362 unchanged lines hidden ---