jonashaag / klaus

docker run klaus / pip install klaus — the first Git web viewer that Just Works™.
http://klausdemo.lophus.org
Other
685 stars 101 forks source link

Default to running Klaus in Python3 #274

Closed jelmer closed 2 years ago

jelmer commented 2 years ago

Default to running Klaus in Python3.

jonashaag commented 2 years ago

Hmmm shouldn't python be Python 3 on modern systems?

Can we be sure that a python3 executable exists?

jelmer commented 2 years ago

All python 3 installations provide a python3 binary - but on e.g. the last release of Debian python often still points at python2.

This PR is motivated by the fact that I keep invoking bin/klaus on my Debian Sid machine and having it fail because newer versions of dulwich are python3 only.

jelmer commented 2 years ago

See also https://www.python.org/dev/peps/pep-0394/

jonashaag commented 2 years ago

Thanks!