From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id B96572BAF for ; Wed, 7 Dec 2016 15:48:39 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id f82so170546427wmf.1 for ; Wed, 07 Dec 2016 06:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=DpgXecXy8kZ9sNCy7/iCCCoRCPODQ+0UjemotyqRdrc=; b=nRbrPaR8VVRlNTfu+yx3Vq3dpmOJ7JfK+lTsoFQN6uNzYsdjQUZ61TVOGXHlVVUwnU 7Q9KAThxy0PLWE+T+0hO8th8wd8FdBQpet+BV/U/4KXVzizEFfQ9XTg/AI0PclIgRN6r m8it4i9uLQBAruW3yhIaVbWYvyTeDWOg2VfjYzVZeoR2aWqZIV49nuT2Te81PoPrbqVp iEfUqcnTpK60av4KD0y2SlF63syPucRFH4yLohPoLKm1K73KcP0p+j82kDImzdig8HQn wawQHznQNY+8pEdtbWTeHRf3cQmmslQNRXpwO/4RszOux3X7gTM4dVr5fsgOgRJKoFxX XLUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=DpgXecXy8kZ9sNCy7/iCCCoRCPODQ+0UjemotyqRdrc=; b=N6AJ8Ittq8VO71HL5ETJ8R0WJh9XpzlKnpadghdmgP+hDZHsKnfNj/98+hosHP374x FXCe1TqhGDVu1+5ybM0IJXGyT7GJy0mKd0Y7h7EKbc+tYxdJyjxKee1/fsgzQ4WCv3FI vwRea4wqPphJ/E5jJ6iiIq26Bvb10e7dCZhAQpQOPEqemGjwmCqS/By1IZ1fsrf4cIkk KXt0MU+KIQFn2SPeJedEHzgYDHgtZwzMSuD/tm6JKkFaAZ/Ow90Bttwpj0RGdYzVJ6Bk wm0Y4+rsM2c8jxHpD+QkT1pKFoW2Bh9GHFCNzUk7K/FYea+7Zm1Euwk8L0Nr1Di/70aa GGwQ== X-Gm-Message-State: AKaTC03KMLiS+0IGFr5ELt3M37xpa9jo0Y+X9yaSPEhd4mo1oaOy6wBZjd9O5oAjRyHWAqh6 X-Received: by 10.28.39.199 with SMTP id n190mr2884284wmn.124.1481122119401; Wed, 07 Dec 2016 06:48:39 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id cl10sm31790135wjb.4.2016.12.07.06.48.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 06:48:38 -0800 (PST) From: Thomas Monjalon To: Martin Kletzander Cc: dev@dpdk.org, "Mcnamara, John" Date: Wed, 07 Dec 2016 15:48:37 +0100 Message-ID: <2927865.NFSFPUUofa@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 14:48:39 -0000 2016-12-07 12:04, Mcnamara, John: > > -----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 > > > > 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. Yes The "solution" using python2 in the shebang does not work everywhere because python2 can be an unknown command.