install.py

changeset 4054
3ef699270e61
parent 4033
46084f695e10
child 4173
10336d4d1488
diff -r 17d8069de085 -r 3ef699270e61 install.py
--- a/install.py	Sat Jan 17 14:34:26 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