|
From: | Aaron |
Subject: | Re: [Duplicity-talk] python3, and a gpg question |
Date: | Fri, 17 May 2019 09:49:50 +0100 |
Mike, On 2019-05-10 11:54, Aaron via Duplicity-talk wrote:
On 2019-05-09 22:22, Mike Gorse via Duplicity-talk wrote:Setup.py now has this: if sys.version_info[:2] < (3, 5): print("Sorry, duplicity requires version 3.5 or later of Python.") This check currently excludes python 2. Is that intended? I thought that the plan was for 0.8 to support both python 2 and python 3.Yes, you are correct, the plan is for Duplicity 0.8 to be Python 2 and 3 and for 0.9 to be Python 3 only.
Something like:if not (sys.version_info[:2] >= (3, 5) or (sys.version_info[0] == 2 and sys.version_info[:2] >= (2, 7))):
print("Sorry, duplicity requires version 3.5 or later of Python.") sys.exit(1) is my understanding of how this check should work. Kind regards, Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |