Switch Centos 7 build of azure-cli to use Python 3#11235
Switch Centos 7 build of azure-cli to use Python 3#11235fengzhou-msft merged 1 commit intoAzure:devfrom rodrigc:centos-python3
Conversation
|
Hi @rodrigc, thanks for submitting this PR. Since our el7 rpm package is also targeting RHEL 7, will the package built with Python 3 work on RHEL 7 as well? As far as I know, RHEL 7 does not support Python 3 officially. |
|
@fengzhou-msft from my branch with this PR, I was able to successfully build following these instructions: https://github.com/Azure/azure-cli/blob/dev/scripts/release/rpm/README.md I was then also able to successfully |
|
If you want to double check, you can follow the instructions at to create a clean centos/7 environment: https://app.vagrantup.com/centos/boxes/7
Create a file:
Then in that clean Centos7 environment, you can build the Centos7 azure-cli rpm package and run it. I am running the Centos7 package built from my branch in a Centos7 environment used in my automation testing. |
|
@fengzhou-msft for RHEL 7, RedHat has this document: and this document: https://developers.redhat.com/blog/2018/08/13/install-python3-rhel/ |
|
@rodrigc Your changes work perfectly with Cento 7. I will try to install Python 3 on RHEL 7 according to your link and see how the package works on RHEL 7. |
|
Looks like RHEL 7.7 has support for Python 3 now : https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/new_features#enhancement_compiler-and-tools |
|
@fengzhou-msft thanks for accepting my patch. One question, will Azure-cli drop support for Python 2.7? Maybe that can be done in 2020 |
|
We've planned that in S163, first release in 2020. |
Fixes #11234 #11206
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).
I adhere to the Command Guidelines.