The default python on MacOS doesn’t have an alias to python2.
The official python version supported in gem5 is Python2.7.
This patch updates the shabang according to the version required in gem5.
Change-Id: I9533c0f7858b5b3cab0ef101be1ee5cd718105b0
Reviewed-on: https://gem5-review.googlesource.com/c/15375
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
# All rights reserved.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
# All rights reserved.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# -----------------------------------------------------------------------------
# calc.py
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# -----------------------------------------------------------------------------
# calc.py
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright 2018 Google, Inc.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
'''
The main source for testlib. Ties together the default test runners and
loaders.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016-2017 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2006 The Regents of The University of Michigan
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2006 The Regents of The University of Michigan
# All rights reserved.
#
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2010 Advanced Micro Devices, Inc.
# All rights reserved.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2006 The Regents of The University of Michigan
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2012-2013,2015-2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013 - 2015 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2015 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
import os
import re
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2017-2018 Metempsy Technology Consulting
# All rights reserved.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2014 ARM Limited
# All rights reserved
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2017-2018 Arm Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2018 Advanced Micro Devices, Inc.
# All rights reserved.
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2015 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2013 ARM Limited
# All rights reserved
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2011 ARM Limited
# All rights reserved
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2005 The Regents of The University of Michigan
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2015 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2014 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2013 ARM Limited
# All rights reserved
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2004-2005, 2007 The Regents of The University of Michigan
# All rights reserved.
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2005-2007 The Regents of The University of Michigan
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2009 The Hewlett-Packard Development Company
# All rights reserved.
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2003-2004 The Regents of The University of Michigan
# All rights reserved.
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
# Copyright (c) 2012, 2014 ARM Limited
# All rights reserved
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2014-2015 ARM Limited
# All rights reserved
-#! /usr/bin/env python2
+#! /usr/bin/env python2.7
# Copyright (c) 2014, 2016 ARM Limited
# All rights reserved
#
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# Copyright (c) 2014, 2016 ARM Limited
# All rights reserved