Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Python will be switched to 3.8 on Ubuntu 20.04 on October, 6 #1591

Closed
maxim-lobanov opened this issue Sep 15, 2020 · 10 comments
Closed

Comments

@maxim-lobanov
Copy link
Contributor

Hello everyone!

Currently, Python 2.7 is set by default on Ubuntu 20.04. Python 2 was sunsetted on Jan 1 2020 and this version is not supported anymore.
Clean Ubuntu 20.04 LTS has Python 3 as default so we would like to follow the same approach.

If you still need to use Python 2.x on Ubuntu 20.04, you will be able to switch Python to 2.7 using actions/setup-python and UsePython tasks.

We are planning to deploy the new image with Python 3 as default on October, 6.

Regards,
Maxim

@rahulsaini
Copy link

@maxim-lobanov Does this also follow for Ubuntu embedded in Windows 10 or does Microsoft follow a separate path for that?

@maxim-lobanov
Copy link
Contributor Author

@rahulsaini , This change will only affect image that you can choose by setting ubuntu-20.04 image label in YAML file.

Ubuntu embedded in Windows 10

What Ubuntu version do you mean? Ubuntu that can be downloaded from store for WSL?

@rahulsaini
Copy link

yes, for WSL.

@maxim-lobanov
Copy link
Contributor Author

@rahulsaini , We don't own those images so this change won't affect them.
This change will affect only ubuntu-20.04 image label.

@bladeoner
Copy link

Hi there, when will the new image with Python 3.8 go live?

@maxim-lobanov
Copy link
Contributor Author

@bladeoner
Copy link

How can I point to that image?

I'm using the following in my YML file:

jobs:
build:
name: ubuntu-20.04
runs-on: ubuntu-20.04

Or do I need to define container: ?
The container command is already pointed to something else.

@maxim-lobanov
Copy link
Contributor Author

@bladeoner No containers are needed. You should follow official documentation and examples: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python#using-a-specific-python-version

@bladeoner
Copy link

@maxim-lobanov Thank you for your quick response and information I will dive into that.

@al-cheb
Copy link
Contributor

al-cheb commented Oct 8, 2020

The new Ubuntu 20.04 has been deployed with default Python3 and Python is an alias -> Python3.

jobs:
  build:
    runs-on: ubuntu-20.04

    steps:
    - name: default python
      run: |
         python --version
         python3 --version

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants