85 lines
2.7 KiB
Diff
85 lines
2.7 KiB
Diff
diff -Naur Python-3.5.0-orig/configure.ac Python-3.5.0/configure.ac
|
|
--- Python-3.5.0-orig/configure.ac 2015-09-21 13:41:58.367916800 +0300
|
|
+++ Python-3.5.0/configure.ac 2015-09-21 13:42:00.039669600 +0300
|
|
@@ -602,6 +602,16 @@
|
|
fi
|
|
AC_MSG_RESULT($MACHDEP)
|
|
|
|
+# Windows uses ; to separate paths, everything else uses :
|
|
+AC_MSG_CHECKING(DELIM)
|
|
+DELIM=:
|
|
+if test "$MACHDEP" = "win"
|
|
+then
|
|
+ DELIM=\;
|
|
+fi
|
|
+AC_MSG_RESULT([$DELIM])
|
|
+AC_SUBST(DELIM)
|
|
+
|
|
AC_MSG_CHECKING([for init system calls])
|
|
AC_SUBST(INITSYS)
|
|
case $host in
|
|
diff -Naur Python-3.5.0-orig/Include/osdefs.h Python-3.5.0/Include/osdefs.h
|
|
--- Python-3.5.0-orig/Include/osdefs.h 2015-09-13 14:41:20.000000000 +0300
|
|
+++ Python-3.5.0/Include/osdefs.h 2015-09-21 13:42:00.047571200 +0300
|
|
@@ -12,6 +12,7 @@
|
|
#define ALTSEP L'/'
|
|
#define MAXPATHLEN 256
|
|
#define DELIM L';'
|
|
+#define DELIMSTR ";"
|
|
#endif
|
|
|
|
/* Filename separator */
|
|
@@ -39,6 +40,7 @@
|
|
/* Search path entry delimiter */
|
|
#ifndef DELIM
|
|
#define DELIM L':'
|
|
+#define DELIMSTR ":"
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
diff -Naur Python-3.5.0-orig/Makefile.pre.in Python-3.5.0/Makefile.pre.in
|
|
--- Python-3.5.0-orig/Makefile.pre.in 2015-09-21 13:41:32.555593700 +0300
|
|
+++ Python-3.5.0/Makefile.pre.in 2015-09-21 13:42:00.074662400 +0300
|
|
@@ -98,7 +98,8 @@
|
|
# C flags used for building the interpreter object files
|
|
PY_CORE_CFLAGS= $(PY_CFLAGS) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
|
|
|
|
-
|
|
+# ; on Windows otherwise :
|
|
+DELIM= @DELIM@
|
|
# Machine-dependent subdirectories
|
|
MACHDEP= @MACHDEP@
|
|
|
|
diff -Naur Python-3.5.0-orig/Modules/getpath.c Python-3.5.0/Modules/getpath.c
|
|
--- Python-3.5.0-orig/Modules/getpath.c 2015-09-13 14:41:24.000000000 +0300
|
|
+++ Python-3.5.0/Modules/getpath.c 2015-09-21 13:42:00.084821600 +0300
|
|
@@ -118,7 +118,7 @@
|
|
#endif
|
|
|
|
#ifndef PYTHONPATH
|
|
-#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \
|
|
+#define PYTHONPATH PREFIX "/lib/python" VERSION DELIMSTR \
|
|
EXEC_PREFIX "/lib/python" VERSION "/lib-dynload"
|
|
#endif
|
|
|
|
diff -Naur Python-3.5.0-orig/Modules/Setup.dist Python-3.5.0/Modules/Setup.dist
|
|
--- Python-3.5.0-orig/Modules/Setup.dist 2015-09-21 13:41:18.333016100 +0300
|
|
+++ Python-3.5.0/Modules/Setup.dist 2015-09-21 13:42:00.091594400 +0300
|
|
@@ -84,14 +84,14 @@
|
|
# Empty since this is now just the runtime prefix.
|
|
DESTPATH=
|
|
|
|
-# Site specific path components -- should begin with : if non-empty
|
|
+# Site specific path components -- should begin with $(DELIM) if non-empty
|
|
SITEPATH=
|
|
|
|
# Standard path components for test modules
|
|
TESTPATH=
|
|
|
|
# Path components for machine- or system-dependent modules and shared libraries
|
|
-MACHDEPPATH=:$(PLATDIR)
|
|
+MACHDEPPATH=$(DELIM)$(PLATDIR)
|
|
EXTRAMACHDEPPATH=
|
|
|
|
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)
|