install.py

branch
6_0_x
changeset 4055
53ca171d8f01
parent 4034
bcee35dbbce0
child 4173
10336d4d1488
diff -r f6c63f2b5a1c -r 53ca171d8f01 install.py
--- a/install.py	Sat Jan 17 17:50:35 2015 +0100
+++ b/install.py	Sun Jan 18 12:05:53 2015 +0100
@@ -92,6 +92,11 @@
     2: "_py2",
     3: "_py3",
 }
+# Define a mapping of markers to full text
+PythonTextMarkers = {
+    "_py2": "Python 2",
+    "_py3": "Python 3",
+}
 
 
 def exit(rcode=0):
@@ -278,6 +283,11 @@
     f.close()
     
     text = text.replace("@MARKER@", marker)
+    if marker:
+        t_marker = " ({0})".format(PythonTextMarkers[marker])
+    else:
+        t_marker = ""
+    text = text.replace("@PY_MARKER@", t_marker)
     
     if sys.version_info[0] == 2:
         f = codecs.open(dst, "w", "utf-8")

eric ide

mercurial