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=yonghong.zhu@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 AF90821163DFE for ; Tue, 9 Oct 2018 01:58:16 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2018 01:58:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,359,1534834800"; d="scan'208";a="97367676" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 09 Oct 2018 01:58:16 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 Oct 2018 01:58:15 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 Oct 2018 01:58:15 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.111]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.183]) with mapi id 14.03.0319.002; Tue, 9 Oct 2018 16:57:25 +0800 From: "Zhu, Yonghong" To: "Kinney, Michael D" , Gary Lin , "edk2-devel@lists.01.org" CC: "Sun, Yanyan" , "Chen, Hesheng" , "Zhu, Yonghong" Thread-Topic: [edk2] [Patch] BaseTools Python: Migrate Python27 to Python36 Thread-Index: AdRVmGOAOFL14raNTn6g/6zdZOLGPADlVvkAAAoivYABldw7MA== Date: Tue, 9 Oct 2018 08:57:25 +0000 Message-ID: References: <20181001102332.GB2545@GaryWorkstation> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools Python: Migrate Python27 to Python36 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, 09 Oct 2018 08:58:16 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, If no more comment, I hope to sync Python3 migration patches to edk2 master= in this week. Thanks. Best Regards, Zhu Yonghong -----Original Message----- From: Kinney, Michael D=20 Sent: Monday, October 01, 2018 11:14 PM To: Gary Lin ; Zhu, Yonghong ; Kinne= y, Michael D Cc: Sun, Yanyan ; edk2-devel@lists.01.org; Chen, Hesh= eng Subject: RE: [edk2] [Patch] BaseTools Python: Migrate Python27 to Python36 Gary, Please send the patch to edk2-devel. Yonghong may not be available much this week, so you may not see a response= form him till next week. Thanks, Mike > -----Original Message----- > From: edk2-devel [mailto:edk2-devel- > bounces@lists.01.org] On Behalf Of Gary Lin > Sent: Monday, October 1, 2018 3:24 AM > To: Zhu, Yonghong > Cc: Sun, Yanyan ; edk2- devel@lists.01.org;=20 > Chen, Hesheng > Subject: Re: [edk2] [Patch] BaseTools Python: Migrate > Python27 to Python36 >=20 > On Wed, Sep 26, 2018 at 01:02:05PM +0000, Zhu, Yonghong > wrote: > > Hi All, > > > Hi Yonghong, >=20 > > Now we are working on bugzilla > 55 > (https://bugzilla.tianocore.org/show_bug.cgi?id=3D55) to migrate=20 > BaseTools python tool from Python27 to Python36. After this=20 > migration, the BaseTools will only support Python 3. And for now, user=20 > need to install a Python version >=3D 3.6. > > Here is the link: https://github.com/yzhu52/edk2.git > Branch: Python3_V2 > > In this branch, after run edksetup script file, tool > auto detect the Python tool that version >=3D 3.6, tool would report=20 > error if it can't find the python that >=3D 3.6. > > > I'm testing the branch and found a minor bug in edksetup.sh that=20 > caused OvmfPkg/build.sh failed to build. I wrote a patch and it works=20 > for me. > Where should I send the patch? to the edk2-devel mailinglist directly? > or a pull request in github? >=20 > Thanks, >=20 > Gary Lin >=20 > > Current we still in doing some validation for this > migration, and not finish the update for UPT, ECC, EOT, Tests those=20 > tools and scripts. > > We already did following on this branch: > > > > 1. Remove the "from __future__ import" items > > > > 2. Update the xrange to range > > > > 3. Update long to int > > > > 4. Use input instead of raw_input > > > > 5. Not use iteritems(), but use items() > directly > > > > 6. Remove the super() function argument > > > > 7. Remove the itertools usage > > > > 8. Fix some open file's read and write function > > > > 9. Hand the bytes and str type difference > > > > 10. Do some list and iterator update > > > > 11. Change the division operation in the expression > > > > 12. Use '\n' but not os.linesep > > > > 13. Update the BinWrappers script > > > > 14. Update edksetup script file > > > > > > Your suggestions is highly appreciated. > > > > Best Regards, > > Zhu Yonghong > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel