# Python3 should be default

**URL:** <https://travis-ci.community/t/python3-should-be-default/9892>\
**Category:** Haxe\
**Created:** [September 11, 2020, 8:41pm UTC](https://travis-ci.community/t/python3-should-be-default/9892 "2020-09-11T20:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NQNStudios](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nqnstudios/32/5175_2.png) [@NQNStudios](https://travis-ci.community/u/NQNStudios)\
**Post date:** [September 11, 2020, 8:41pm UTC](https://travis-ci.community/t/python3-should-be-default/9892/1 "2020-09-11T20:41:09Z")

</div>

@andyli waneck and @Simn

I ran into some awkwardness running travis CI for the Haxe python target. Haxe python doesn’t support python 2, (and shouldn’t, because python2 is dead). But on the instances used by the haxe CI configuration, `python` resolves to python 2, so executing my tests usually fails when I use the same hxml file in the CI as on my local machine.

works locally:

```auto
build-scripts/all-script-args.hxml
build-scripts/test/all-test-args.hxml
--python bin/py/test-hiss.py
--cmd python bin/py/test-hiss.py

```

works in Travis:

```auto
build-scripts/all-script-args.hxml
build-scripts/test/all-test-args.hxml
--python bin/py/test-hiss.py
--cmd python3 bin/py/test-hiss.py

```

Since Python 3 is now the only supported version of python, I think it would be a little more ergonomic if the Haxe travis configuration provided python3 as python in PATH.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [September 11, 2020, 9:44pm UTC](https://travis-ci.community/t/python3-should-be-default/9892/2 "2020-09-11T21:44:38Z")

</div>

In `dist: focal`. Python 3 is the only available version. See [https://github.com/travis-ci/travis-cookbooks/pull/1076#issuecomment-617480688](https://github.com/travis-ci/travis-cookbooks/pull/1076#issuecomment-617480688) why Python 2 is the default in the previous versions.

If Haxe is anything worth its salt, there must be a way to specify the Python executable for it to use.
