From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 8DDE52C60 for ; Wed, 7 Dec 2016 13:04:25 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP; 07 Dec 2016 04:04:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,310,1477983600"; d="scan'208";a="39757574" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga005.jf.intel.com with ESMTP; 07 Dec 2016 04:04:23 -0800 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.91]) by IRSMSX102.ger.corp.intel.com ([169.254.2.79]) with mapi id 14.03.0248.002; Wed, 7 Dec 2016 12:04:23 +0000 From: "Mcnamara, John" To: Martin Kletzander , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] Force python scripts to run with python2 Thread-Index: AQHSUHu7ciUkOO+xx0u0sSFwFiRUxaD8Yt3g Date: Wed, 7 Dec 2016 12:04:23 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzhiYjY1ZmUtNzU0NS00MjNiLWE3YTUtMDBmNDg0ZGQ2MjgzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IktCbVB4aVNhT2k1Mys5RXUwSjMrOVFpaDVQM3E2R092QUdLN0pqRWRaV1U9In0= x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] Force python scripts to run with python2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2016 12:04:25 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Martin Kletzander > Sent: Wednesday, December 7, 2016 10:17 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] Force python scripts to run with python2 >=20 > With python3 being the default in some distributions/installations, > shebang with just "python" will make the script run under version of > python that the scripts are not written for. In order to fix that and > mitigate future errors, use shebang properly and specify the python > version. That way the scripts will run in any distro/install, no matter > what python version is set as the default. I think a better approach would be to make the scripts Python 2 and Python = 3 compatible. Some of the new ones already are.