Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 702676 | Differences between
and this patch

Collapse All | Expand All

(-)a/setup.py (-13 lines)
Lines 9-27 Link Here
9
import sys, os
9
import sys, os
10
10
11
11
12
def check_version_info():
13
    vi = sys.version_info
14
    if vi[0] == 2 and vi[1:3] >= (7, 9):
15
        return
16
    if vi.major > 2 and 'CALIBRE_PY3_PORT' in os.environ:
17
        # PY3_TODO: Remove check for 'CALIBRE_PY3_PORT' once calibre works with python3
18
        return
19
    raise SystemExit(
20
        'calibre requires python >= 2.7.9 and < 3. Current python version: ' + '.'.join(map(str, vi[:3])))
21
22
23
check_version_info()
24
25
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
12
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
26
13
27
import setup.commands as commands
14
import setup.commands as commands

Return to bug 702676