From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=jaben.carsey@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 87243211A3216 for ; Tue, 8 Jan 2019 08:22:49 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2019 08:22:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,454,1539673200"; d="scan'208";a="308613010" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 08 Jan 2019 08:22:49 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 8 Jan 2019 08:22:49 -0800 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.197]) by FMSMSX157.amr.corp.intel.com ([169.254.14.69]) with mapi id 14.03.0415.000; Tue, 8 Jan 2019 08:22:48 -0800 From: "Carsey, Jaben" To: "Gao, Liming" , Laszlo Ersek , "Ni, Ray" , "edk2-devel@lists.01.org" , "leif.lindholm@linaro.org" , "afish@apple.com" , "Kinney, Michael D" Thread-Topic: [edk2] [RFC] Edk2 BaseTools Python3 Migration Update Thread-Index: AdScIfEAP1TAIYqwRbmPvz2xdWmYXwKhanyAAAqMigAAC0CxAAAodTQAAAyrvfA= Date: Tue, 8 Jan 2019 16:22:48 +0000 Message-ID: References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E39130F@SHSMSX104.ccr.corp.intel.com> <2b49bd5c-968e-d7b0-e975-9d3da2101bc3@Intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E3AD26C@SHSMSX152.ccr.corp.intel.com> <5e943b6c-6df2-fe06-198e-5ff5ab43c9a0@redhat.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14E3ADC62@SHSMSX152.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E3ADC62@SHSMSX152.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWU5NzBhMGMtOGNmMi00OTExLWEwYTUtNTY0MWViZGM5MGZlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVHQrbnp4cEt0U1wvNW4xb2lneGVOYkFSd0VjREZnR284c1pEU0d2Sjc4dXRweUlCMzdWbUs1b1BQVzVMQVlhWGgifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.1.200.108] MIME-Version: 1.0 Subject: Re: [RFC] Edk2 BaseTools Python3 Migration Update X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 16:22:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Liming and Laszlo, What if we add a 4th option to the environment variable - the path to a sp= ecific python interpreter for use. -Jaben > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Gao, Liming > Sent: Tuesday, January 08, 2019 6:23 AM > To: Laszlo Ersek ; Ni, Ray ; edk2- > devel@lists.01.org; leif.lindholm@linaro.org; afish@apple.com; Kinney, > Michael D > Subject: Re: [edk2] [RFC] Edk2 BaseTools Python3 Migration Update >=20 > Laszlo: > Yes. This can be supported. But, I don't know what purpose to specify > python minor version of Python3. Current implementation in Python3 branch > always tries to find the high version installed in OS. For example, Pytho= n3.4, > Python3.7 are both installed, Python3.7 will be chosen. Does this policy = meet > with your usage? >=20 > Thanks > Liming > > -----Original Message----- > > From: Laszlo Ersek [mailto:lersek@redhat.com] > > Sent: Tuesday, January 8, 2019 3:04 AM > > To: Gao, Liming ; Ni, Ray ; edk= 2- > devel@lists.01.org; leif.lindholm@linaro.org; > > afish@apple.com; Kinney, Michael D > > Subject: Re: [edk2] [RFC] Edk2 BaseTools Python3 Migration Update > > > > On 01/07/19 14:41, Gao, Liming wrote: > > > Ray: > > > I think this proposal is good to recommend Python3 as the default > interpreter. I summary the updated proposal. > > > > > > 1. PYTHON3_ENABLE env is not set. edksetup.bat/edksetup.sh will find > higher version python installed in OS. If Python3 is found, > > Python3 will be used. Then, if python2 is found, and python2 is used. I= f not > found, report error and stop build. This will change the > > default python interpreter from Python2 to Python3 when they both are > installed. > > > 2. PYTHON3_EANBLE env is set to TRUE. edksetup.bat/edksetup.sh will > find Python3. If Python3 is found, Python3 will be used. If not > > found, report error and stop build. > > > 3. PYTHON3_ENABLE env is set to not TRUE. edksetup.bat/edksetup.sh > will find Python2. If Python2 is found, Python2 will be used. If > > not found, report error and stop build. > > > Once Python is found, edksetup.bat/edksetup.sh and build tool will bo= th > print message to let user aware which version python tool is > > used in this build. > > > > If we're going for this level of flexibility, I'd like to suggest / > > request another improvement. Some Linux distros intend to accommodate > > multiple Python3 versions at the same time (this is not a typo; I don't > > mean Python2+Python3, but multiple Python3 versions). So basically I'd > > suggest that we offer a method for specifying a python version > > (2/3/auto-detect), plus, in case a specific major version is specified, > > that we allow the user to specify the precise interpreter pathname too. > > > > Thanks, > > Laszlo > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel