Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I build Python 3.8 on Travis CI?

When I follow the instructions provided to build Python 3.8 on Travis using, for example

language: python 

matrix:
  include:
    - name: "Python 3.8 dev"
      python: 3.8-dev
      dist: trusty
      env: PYTHON=python3 PIP=pip3  # Unnecessary on Lunix

I get

3.8-dev is not installed; attempting download
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-3.8-dev.tar.bz2
0.06s$ curl -sSf -o python-3.8-dev.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 404 Not Found
Unable to download 3.8-dev archive. The archive may not exist. Please consider a different version.

How do I build Python 3.8 on Travis CI?

like image 924
orome Avatar asked Apr 26 '19 21:04

orome


1 Answers

Change the dist to xenial, as that is required for 3.7 or higher.

https://docs.travis-ci.com/user/languages/python/#python-37-and-higher

like image 124
CasualDemon Avatar answered Oct 09 '22 20:10

CasualDemon