]> arthur.barton.de Git - bup.git/commit
Refuse to run by default if python version is not 2
authorRob Browning <rlb@defaultvalue.org>
Sun, 2 Sep 2018 17:29:01 +0000 (12:29 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Sep 2018 17:29:04 +0000 (12:29 -0500)
commitd30215975cb04ed75f027006defa5b35c3f6a3ac
tree6823d28803c49390ce4ee2872975a71d4c0b6757
parent4102113b8728751d90482815ef470e25a8d0250b
Refuse to run by default if python version is not 2

Exit with an error if the python major version isn't 2, since we're
working on support for py3, and we'll probably reach a point before
we're finished where bup doesn't immediately crash with py3, but might
well do very bad things to the repository.

Allow overriding the check by setting
BUP_ALLOW_UNEXPECTED_PYTHON_VERSION=true so people can still test py3
if they like.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
main.py