summaryrefslogtreecommitdiff
path: root/site_scons/site_init.py
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons/site_init.py')
-rw-r--r--site_scons/site_init.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/site_scons/site_init.py b/site_scons/site_init.py
index 6d9d24d30..351f49bc0 100644
--- a/site_scons/site_init.py
+++ b/site_scons/site_init.py
@@ -38,6 +38,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+from __future__ import print_function
from gem5_python_paths import extra_python_paths
# Check for recent-enough Python and SCons versions.
@@ -49,24 +50,24 @@ try:
EnsureSConsVersion(0, 98)
EnsureSConsVersion(0, 98, 1)
except SystemExit, e:
- print """
+ print("""
For more details, see:
http://gem5.org/Dependencies
-"""
+""")
raise
# pybind11 requires python 2.7
try:
EnsurePythonVersion(2, 7)
except SystemExit, e:
- print """
+ print ("""
You can use a non-default installation of the Python interpreter by
rearranging your PATH so that scons finds the non-default 'python' and
'python-config' first.
For more details, see:
http://gem5.org/wiki/index.php/Using_a_non-default_Python_installation
-"""
+""")
raise
sys.path[1:1] = extra_python_paths