mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-06 20:04:19 +01:00
Allow setup.py to be run with python3
This commit is contained in:
parent
b1435f9b44
commit
d62d9dc2e6
1 changed files with 3 additions and 0 deletions
3
setup.py
3
setup.py
|
|
@ -13,6 +13,9 @@ def check_version_info():
|
|||
vi = sys.version_info
|
||||
if vi[0] == 2 and vi[1:3] >= (7, 9):
|
||||
return
|
||||
if vi.major > 2 and 'CALIBRE_PY3_PORT' in os.environ:
|
||||
# PY3_TODO: Remove check for 'CALIBRE_PY3_PORT' once calibre works with python3
|
||||
return
|
||||
raise SystemExit(
|
||||
'calibre requires python >= 2.7.9 and < 3. Current python version: %s'
|
||||
% vi)
|
||||
|
|
|
|||
Loading…
Reference in a new issue