setup: raise when executing with python3 without c2to3 argument

This commit is contained in:
Simon Heimberg 2011-11-12 02:08:01 +01:00
parent 302466e126
commit 77b258d449

View File

@ -78,7 +78,8 @@ if convert2to3:
raise SystemExit("--c2to3 is only compatible with python3.")
raise
sys.path.append('contrib')
elif sys.version_info[0] >= 3:
raise SystemExit("setup.py with python3 needs --c2to3 (experimental)")
scripts = ['hg']
if os.name == 'nt':