# HG changeset patch # User Simon Heimberg # Date 2011-11-12 01:08:01 # Node ID d5abe76da61ebe8a886323dcc13eb0b2c142ec27 # Parent 7a7a1c594daf5a7f813792204d7740a1cf7d83f0 setup: raise when executing with python3 without c2to3 argument diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -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':