SConstruct (12230:48021d6b51eb) | SConstruct (12242:585b6820ced0) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 64 unchanged lines hidden (view full) --- 73# 74# You can use 'scons -H' to print scons options. If you're in this 75# 'gem5' directory (or use -u or -C to tell scons where to find this 76# file), you can use 'scons -h' to print all the gem5-specific build 77# options as well. 78# 79################################################### 80 | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 64 unchanged lines hidden (view full) --- 73# 74# You can use 'scons -H' to print scons options. If you're in this 75# 'gem5' directory (or use -u or -C to tell scons where to find this 76# file), you can use 'scons -h' to print all the gem5-specific build 77# options as well. 78# 79################################################### 80 |
81# Check for recent-enough Python and SCons versions. 82try: 83 # Really old versions of scons only take two options for the 84 # function, so check once without the revision and once with the 85 # revision, the first instance will fail for stuff other than 86 # 0.98, and the second will fail for 0.98.0 87 EnsureSConsVersion(0, 98) 88 EnsureSConsVersion(0, 98, 1) 89except SystemExit, e: 90 print """ 91For more details, see: 92 http://gem5.org/Dependencies 93""" 94 raise 95 96# pybind11 requires python 2.7 97try: 98 EnsurePythonVersion(2, 7) 99except SystemExit, e: 100 print """ 101You can use a non-default installation of the Python interpreter by 102rearranging your PATH so that scons finds the non-default 'python' and 103'python-config' first. 104 105For more details, see: 106 http://gem5.org/wiki/index.php/Using_a_non-default_Python_installation 107""" 108 raise 109 | |
110# Global Python includes 111import itertools 112import os 113import re 114import shutil 115import subprocess 116import sys 117 --- 1441 unchanged lines hidden --- | 81# Global Python includes 82import itertools 83import os 84import re 85import shutil 86import subprocess 87import sys 88 --- 1441 unchanged lines hidden --- |