[PATCH 4 of 4] setup: raise when executing with python3 without c2to3 argument
Simon Heimberg
simohe at besonet.ch
Fri Nov 11 19:16:57 CST 2011
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1321060081 -3600
# Node ID 57ba43c061c95982c4c9f81563e153bba18bf222
# Parent 59d6fdf52a4c2e73bbddde07104807b70e8b6f1f
setup: raise when executing with python3 without c2to3 argument
diff -r 59d6fdf52a4c -r 57ba43c061c9 setup.py
--- a/setup.py Son Aug 21 15:23:43 2011 +0200
+++ b/setup.py Sam Nov 12 02:08:01 2011 +0100
@@ -78,6 +78,8 @@
raise SystemExit("--c2to3 is only compatible with python3.")
raise
sys.path.append('contrib')
+elif sys.version_info[0] >= 3:
+ raise SystemExit("running setup.py with python3 needs --c2to3 (still experimental).")
scripts = ['hg']
More information about the Mercurial-devel
mailing list