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.136; helo=mga12.intel.com; envelope-from=michael.d.kinney@intel.com; receiver=edk2-devel@lists.01.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 A4FCA211575E3 for ; Mon, 1 Oct 2018 08:13:57 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2018 08:13:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,328,1534834800"; d="scan'208";a="237583149" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga004.jf.intel.com with ESMTP; 01 Oct 2018 08:13:46 -0700 Received: from orsmsx152.amr.corp.intel.com (10.22.226.39) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 1 Oct 2018 08:13:45 -0700 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.89]) by ORSMSX152.amr.corp.intel.com ([169.254.8.219]) with mapi id 14.03.0319.002; Mon, 1 Oct 2018 08:13:45 -0700 From: "Kinney, Michael D" To: Gary Lin , "Zhu, Yonghong" , "Kinney, Michael D" CC: "Sun, Yanyan" , "edk2-devel@lists.01.org" , "Chen, Hesheng" Thread-Topic: [edk2] [Patch] BaseTools Python: Migrate Python27 to Python36 Thread-Index: AdRVmGOAOFL14raNTn6g/6zdZOLGPAEExZkAAASXnoA= Date: Mon, 1 Oct 2018 15:13:45 +0000 Message-ID: References: <20181001102332.GB2545@GaryWorkstation> In-Reply-To: <20181001102332.GB2545@GaryWorkstation> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.139] 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: Mon, 01 Oct 2018 15:13:57 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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; 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 BaseTools python tool from Python27 to > Python36. After this migration, the BaseTools will > only support Python 3. And for now, user 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 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 caused > OvmfPkg/build.sh failed to build. I wrote a patch and > it works 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 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