Bob:
Yes. Python3 is the formal support. We recommend user to use Python3. But, if user meets the issue in Python2, user can still report the issue in BaseTools. Its priority may be low. For this case, it is the regression issue caused by the recent change. The patch owner is also identified. So, I suggest the patch owner to follow up and enhance his patch.
Thanks
Liming
发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Sunny Wang
发送时间: 2021年9月6日 21:16
收件人: Feng, Bob C <bob.c.feng@intel.com>; gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io; Chen, Christine <yuwei.chen@intel.com>; 'Cole Robinson' <crobinso@redhat.com>
抄送: Sami Mujawar <Sami.Mujawar@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com>; Sunny Wang <Sunny.Wang@arm.com>
主题: Re: [edk2-devel] Python2.7 is not working with the EDK2 build system
Thanks for checking this, Bob and Liming.
Hi Bob,
Yeah, I was aware of that as well. It makes sense to switch Python2 to Python3. However, Python 2 was discontinued for a while, but there seems no announcement in the mailing list or code change for cleaning up Python 2 stuff in edk2 BaseTools, which may make users feel Python 2 is still useable and cause confusion. Of course, I may miss some activities about deprecating Python 2 in edk2. If so, could you point me out? I just want to have an obvious way to inform edk2 users that Python 2 doesn’t work. If you think this email is good enough as a notification to the edk2 users, I’m fine with this.
Moreover, for a quick improvement, how about we add a python version check in the build script to prevent code building and remind users to use Python 3?
Thanks,
Sunny
From: Feng, Bob C <bob.c.feng@intel.com>
Sent: 06 September 2021 10:31
To: gaoliming <gaoliming@byosoft.com.cn>; devel@edk2.groups.io; Sunny Wang <Sunny.Wang@arm.com>; Chen, Christine <yuwei.chen@intel.com>; 'Cole Robinson' <crobinso@redhat.com>
Cc: Sami Mujawar <Sami.Mujawar@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com>
Subject: RE: [edk2-devel] Python2.7 is not working with the EDK2 build system
Hi Sunny,
EDK II only formally supports Python 3 now because Python 2 is EOL with no support. So I’d suggest BaseTools users switch Python2 to Python3.
Thanks,
Bob
From: gaoliming <gaoliming@byosoft.com.cn>
Sent: Monday, September 6, 2021 9:10 AM
To: devel@edk2.groups.io; Sunny.Wang@arm.com; Feng, Bob C <bob.c.feng@intel.com>; Chen, Christine <yuwei.chen@intel.com>; 'Cole Robinson' <crobinso@redhat.com>
Cc: 'Sami Mujawar' <Sami.Mujawar@arm.com>; 'Samer El-Haj-Mahmoud' <Samer.El-Haj-Mahmoud@arm.com>; 'Gerd Hoffmann' <kraxel@redhat.com>
Subject: 回复: [edk2-devel] Python2.7 is not working with the EDK2 build system
Sunny:
If Robinson has no response, I suggest to revert this change first.
Robinson:
Can you give your fix plan for this regression issue?
Thanks
Liming
发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Sunny Wang
发送时间: 2021年9月4日 2:09
收件人: Feng, Bob C <bob.c.feng@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>; Cole Robinson <crobinso@redhat.com>; devel@edk2.groups.io
抄送: Sunny Wang <Sunny.Wang@arm.com>; Sami Mujawar <Sami.Mujawar@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
主题: [edk2-devel] Python2.7 is not working with the EDK2 build system
Hi all,
I just ran into this build issue. After checking the edk2 emails, I saw some of you already ran into this build issue as well. At least, I saw two email threads below talking about this issue.
The main purpose of this email is to have obvious email subject to get people’s attention, so that people won’t spend time to check this when running into this issue.
The solution at this moment is to use Python 3 instead (Use “export PYTHON_COMMAND=/usr/bin/python3” instead of “export PYTHON_COMMAND=/usr/bin/python”).
Hi Robinson,
Are you working on this now? If you’re busy with other things, how about we revert your patch first?
Hi Bob, Liming, and Yuwei,
What do you prefer to do at this moment? Wait for Robinson? or revert the change?
Best Regards,
Sunny
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.