Mercurial > hg
comparison setup.py @ 15500:d5abe76da61e
setup: raise when executing with python3 without c2to3 argument
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Sat, 12 Nov 2011 02:08:01 +0100 |
parents | 7a7a1c594daf |
children | f9da84a950d0 |
comparison
equal
deleted
inserted
replaced
15494:7a7a1c594daf | 15500:d5abe76da61e |
---|---|
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 |