setup.py
changeset 15500 d5abe76da61e
parent 15494 7a7a1c594daf
child 15523 f9da84a950d0
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