I'm trying to use Travis CI on a C library that uses custom python3-based build scripts.
When the repository gets built, it fails on ./configure
because configure uses Python 3, which isn't installed by default.
If I were building a Python project, I would use this in my .travis.yml
:
python:
- "3.4"
However, this doesn't seem to affect my repository because it is in C. (I tried running which python3
and python --version
, which reported that python 3 didn't exist and python 2.7 was in use instead.)
The build script that I tried:
language: c
python:
- "3.4"
How can I have Python 3 available in Travis CI when my project is not a Python project?
before_install
way does not work for me. Did you find any other way to set the default Python version later?