From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D8CFA052A; Fri, 10 Jul 2020 15:34:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 69EAB1DAEB; Fri, 10 Jul 2020 15:34:01 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 314B11D739 for ; Fri, 10 Jul 2020 15:34:00 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id a6so5966439wrm.4 for ; Fri, 10 Jul 2020 06:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZZYtXCt7vFtm497bes3MELqunlDEz2q6jnuKeUPGcpg=; b=SbisfOzsBn1ymbv5/izCqYTVAdjH/O0F4feOB4/lyWhg1QINRaY3zihmCUBox8tOy/ GrdQ7twJP7PGQpxQ+IUm6QUG3Jk8SEATWZ4+pHuJH43oucgoy76G9MN2qaDerlwfnQCl D7A//H7vE31Jbl+VFJs4f1dBqzRVkoybuiOf50jv11L5ivEb6sQaIjCPND6lg2kypTb/ 3vxCEyxeVTxs9xfGo+ycjJ83jKgbMjV+kwpm/ST91T0nhSPNwPB+sjXn14dRtHxBNop0 po2j0puE6gBWsL9zZvixCBbsTQRwP65pDWT8sLdLFqgCjz/J1sAmUUdQfAlihkN9blh9 StYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZZYtXCt7vFtm497bes3MELqunlDEz2q6jnuKeUPGcpg=; b=F9Y0CcneYpat201ICwvtUf+8SmZD1mx4ExH9D5DAcSTrKHwvkHCsmrhZuFbzFpub6L +9Kr2et2ElED4pvQWPkzo7AUPK4mulM5XkUh9qnJ7/WKEIVVQbF20atIOnI48r/x51Vv mjz43Dv556hO/3AUsBbbutDJ9hPVhk4sx+KBZxeUDza0X+GUXk8I5fsT3K51LEiw8XMx aILJYb6yARJ+IOvLtkJMTppwNfRtfPGKA1AS2+YsHbeu+LPb/hhZsqqeVl8NFeWV/p5z WRdi/r4Q4SC+UIcdhiqIuLKzPVZbuy7XQJkPg5u5D30I1zWKSSspWyMpxtmd0dSx5KaB 8jtQ== X-Gm-Message-State: AOAM530tY7/FhVnEyEOItCBWNrM5fVGJH/J97qc0dC6MwcvXkyIAkCXI fuwAcdahyCPIvs2A7M4etiu9IA== X-Google-Smtp-Source: ABdhPJx6aRJ0REmzhFIU3UAa5N9sW2jIvEleBEJT0hMWEmorORi9neOj+KmmQEDEdVHnSpCz9n7DSg== X-Received: by 2002:a5d:540d:: with SMTP id g13mr63275501wrv.380.1594388039896; Fri, 10 Jul 2020 06:33:59 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id w7sm9767230wmc.32.2020.07.10.06.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 06:33:59 -0700 (PDT) Date: Fri, 10 Jul 2020 15:33:58 +0200 From: Robin Jarry To: Louise Kilheeney Cc: dev@dpdk.org, david.marchand@redhat.com, bruce.richardson@intel.com Message-ID: <20200710133358.j535wy7onvelu3ln@6wind.com> References: <20200710101055.33671-1-louise.kilheeney@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710101055.33671-1-louise.kilheeney@intel.com> User-Agent: NeoMutt/20180716 Subject: Re: [dpdk-dev] [PATCH 0/9] python2 deprecation notice 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Louise, 2020-07-10, Louise Kilheeney: > This patchset adds deprecation notices to python scripts, > warning of the removal of python2 support from the DPDK 20.11 release. While showing warnings to users about Python 2 support drop in 20.11 is good, it seems like the shebangs in a lot of these scripts still refer to "python". dpdk$ git describe v20.05-623-geff30b59cc2e dpdk$ git grep '#.*!.*python\>' app/test-bbdev/test-bbdev.py:1:#!/usr/bin/env python app/test-cmdline/cmdline_test.py:1:#!/usr/bin/env python app/test/autotest.py:1:#!/usr/bin/env python buildtools/map_to_win.py:1:#!/usr/bin/env python config/arm/armv8_machine.py:1:#!/usr/bin/python devtools/update_version_map_abi.py:1:#!/usr/bin/env python usertools/cpu_layout.py:1:#!/usr/bin/env python usertools/dpdk-devbind.py:1:#! /usr/bin/env python usertools/dpdk-pmdinfo.py:1:#!/usr/bin/env python usertools/dpdk-telemetry-client.py:1:#! /usr/bin/env python On many distros, "python" still points (as of today) to python2. You series will cause warnings that cannot be avoided. Also, on some distros, "python" does not exist at all (RHEL 8 and CentOS 8 for example). And only "python2" or "python3" are available. I wonder if it would not be better to find a way to make these shebangs "dynamic" somehow. It is not trivial and I don't see any other solution than plain modification of the shebangs at build time. However, there is no way (to my knowledge) to specify which version of python is "selected" during the build. Does anyone have a proper solution? -- Robin