[Python-checkins] CVS: distutils/misc install.c,1.13,1.14
Thomas Heller
theller@users.sourceforge.net
Tue, 18 Dec 2001 12:32:08 -0800
Update of /cvsroot/python/distutils/misc
In directory usw-pr-cvs1:/tmp/cvs-serv5997
Modified Files:
install.c
Log Message:
Show another indicator to avoid confision about not finding Python
installation(s).
Index: install.c
===================================================================
RCS file: /cvsroot/python/distutils/misc/install.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** install.c 2001/10/05 20:38:11 1.13
--- install.c 2001/12/18 20:32:06 1.14
***************
*** 915,918 ****
--- 915,931 ----
SendDlgItemMessage (hwnd, IDC_VERSIONS_LIST, LB_SETCURSEL,
count-1, 0);
+
+ /* If a specific Python version is required,
+ * display a prominent notice showing this fact.
+ */
+ if (target_version && target_version[0]) {
+ char buffer[4096];
+ wsprintf(buffer,
+ "Python %s is required for this package. "
+ "Select installation to use:",
+ target_version);
+ SetDlgItemText(hwnd, IDC_TITLE, buffer);
+ }
+
if (count == 0) {
char Buffer[4096];