changeset 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 2371f4aea665
files setup.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sun Aug 21 15:23:43 2011 +0200
+++ b/setup.py	Sat Nov 12 02:08:01 2011 +0100
@@ -78,7 +78,8 @@
             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':