From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=195.135.221.5; helo=smtp.nue.novell.com; envelope-from=glin@suse.com; receiver=edk2-devel@lists.01.org Received: from smtp.nue.novell.com (smtp.nue.novell.com [195.135.221.5]) (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 696AD21161206 for ; Mon, 1 Oct 2018 03:23:57 -0700 (PDT) Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Mon, 01 Oct 2018 12:23:55 +0200 Received: from GaryWorkstation ([10.120.13.202]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Mon, 01 Oct 2018 11:23:37 +0100 Date: Mon, 1 Oct 2018 18:23:32 +0800 From: Gary Lin To: "Zhu, Yonghong" Cc: "edk2-devel@lists.01.org" , "Chen, Hesheng" , "Sun, Yanyan" Message-ID: <20181001102332.GB2545@GaryWorkstation> References: MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 10:23:58 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 26, 2018 at 01:02:05PM +0000, Zhu, Yonghong wrote: > Hi All, > Hi Yonghong, > Now we are working on bugzilla 55 (https://bugzilla.tianocore.org/show_bug.cgi?id=55) 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 >= 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 >= 3.6, tool would report error if it can't find the python that >= 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? Thanks, Gary Lin > 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 >