equal
deleted
inserted
replaced
76 except ImportError: |
76 except ImportError: |
77 if sys.version_info[0] < 3: |
77 if sys.version_info[0] < 3: |
78 raise SystemExit("--c2to3 is only compatible with python3.") |
78 raise SystemExit("--c2to3 is only compatible with python3.") |
79 raise |
79 raise |
80 sys.path.append('contrib') |
80 sys.path.append('contrib') |
81 |
81 elif sys.version_info[0] >= 3: |
|
82 raise SystemExit("setup.py with python3 needs --c2to3 (experimental)") |
82 |
83 |
83 scripts = ['hg'] |
84 scripts = ['hg'] |
84 if os.name == 'nt': |
85 if os.name == 'nt': |
85 scripts.append('contrib/win32/hg.bat') |
86 scripts.append('contrib/win32/hg.bat') |
86 |
87 |