python3: Update to 3.7.1

This commit is contained in:
Alexey Pavlov
2018-10-30 09:52:42 +03:00
parent 70c2628d20
commit 064973e09d
25 changed files with 241 additions and 1883 deletions

View File

@@ -1,8 +1,8 @@
--- Python-3.2.3/Modules/getpath.c.orig 2012-04-11 02:54:07.000000000 -0400
+++ Python-3.2.3/Modules/getpath.c 2012-06-14 13:33:30.179375000 -0400
@@ -551,6 +551,28 @@
if (isxfile(progpath))
break;
}
+#ifdef __CYGWIN__
+ /*
@@ -18,14 +18,14 @@
+ * extension appended.
+ */
+#define EXE L".exe"
+ if (isdir(progpath) && wcslen(progpath) + wcslen(EXE) <= MAXPATHLEN)
+ if (isdir(program_full_path) && wcslen(program_full_path) + wcslen(EXE) <= MAXPATHLEN)
+ {
+ wcscat(progpath, EXE);
+ if (isxfile(progpath))
+ wcscat(program_full_path, EXE);
+ if (isxfile(program_full_path))
+ break;
+ }
+#endif /* __CYGWIN__ */
+
if (!delim) {
progpath[0] = L'\0';
program_full_path[0] = L'\0';
break;