Update python to 3.7.0 (#4047)
* Initial python-3.7 port * python3: Add setup.config.in to remove before patching * python3: Implement setenv for mingw. Fix building with NT threads. Build with unicode * Fix typos * Fix linking core modules * Mingw build have exec_prefix * Remove deprecated patch * Fix building python and modules. Failing to build readline module and install not working yet * More getpath changes and more aggressive path separator conversion * Fix readline module compilation and linking errors * python3: By default building with posix threads, NT threads are broken. Some patches optimization. First buildable commit * Py_DecodeLocale handle char, not wchar * Fix building multiprocessing module with posix threads
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
diff -Naur Python-3.6.5-orig/Include/bytesobject.h Python-3.6.5/Include/bytesobject.h
|
||||
--- Python-3.6.5-orig/Include/bytesobject.h 2018-03-28 12:19:31.000000000 +0300
|
||||
+++ Python-3.6.5/Include/bytesobject.h 2018-04-16 09:54:43.856638800 +0300
|
||||
diff -Naur Python-3.7.0-orig/Include/bytesobject.h Python-3.7.0/Include/bytesobject.h
|
||||
--- Python-3.7.0-orig/Include/bytesobject.h 2018-06-27 06:07:35.000000000 +0300
|
||||
+++ Python-3.7.0/Include/bytesobject.h 2018-06-30 11:17:48.631984800 +0300
|
||||
@@ -52,9 +52,9 @@
|
||||
PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
|
||||
PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
|
||||
PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 0)));
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 0)));
|
||||
PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
||||
PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
|
||||
PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
|
||||
PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
|
||||
diff -Naur Python-3.6.5-orig/Include/pgenheaders.h Python-3.6.5/Include/pgenheaders.h
|
||||
--- Python-3.6.5-orig/Include/pgenheaders.h 2018-03-28 12:19:31.000000000 +0300
|
||||
+++ Python-3.6.5/Include/pgenheaders.h 2018-04-16 09:54:43.858638900 +0300
|
||||
diff -Naur Python-3.7.0-orig/Include/pgenheaders.h Python-3.7.0/Include/pgenheaders.h
|
||||
--- Python-3.7.0-orig/Include/pgenheaders.h 2018-06-27 06:07:35.000000000 +0300
|
||||
+++ Python-3.7.0/Include/pgenheaders.h 2018-06-30 11:17:48.631984800 +0300
|
||||
@@ -10,9 +10,9 @@
|
||||
#include "Python.h"
|
||||
|
||||
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
||||
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
||||
- Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
|
||||
+ Py_GCC_ATTRIBUTE((format(gnu_printf, 1, 2)));
|
||||
|
||||
#define addarc _Py_addarc
|
||||
#define addbit _Py_addbit
|
||||
diff -Naur Python-3.6.5-orig/Include/pyerrors.h Python-3.6.5/Include/pyerrors.h
|
||||
--- Python-3.6.5-orig/Include/pyerrors.h 2018-03-28 12:19:31.000000000 +0300
|
||||
+++ Python-3.6.5/Include/pyerrors.h 2018-04-16 09:54:43.861639100 +0300
|
||||
@@ -493,9 +493,9 @@
|
||||
diff -Naur Python-3.7.0-orig/Include/pyerrors.h Python-3.7.0/Include/pyerrors.h
|
||||
--- Python-3.7.0-orig/Include/pyerrors.h 2018-06-27 06:07:35.000000000 +0300
|
||||
+++ Python-3.7.0/Include/pyerrors.h 2018-06-30 11:17:48.631984800 +0300
|
||||
@@ -494,9 +494,9 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
PyAPI_FUNC(int) PyOS_snprintf(char *str, size_t size, const char *format, ...)
|
||||
@@ -43,9 +43,9 @@ diff -Naur Python-3.6.5-orig/Include/pyerrors.h Python-3.6.5/Include/pyerrors.h
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
diff -Naur Python-3.6.5-orig/Include/sysmodule.h Python-3.6.5/Include/sysmodule.h
|
||||
--- Python-3.6.5-orig/Include/sysmodule.h 2018-03-28 12:19:31.000000000 +0300
|
||||
+++ Python-3.6.5/Include/sysmodule.h 2018-04-16 09:54:43.864639300 +0300
|
||||
diff -Naur Python-3.7.0-orig/Include/sysmodule.h Python-3.7.0/Include/sysmodule.h
|
||||
--- Python-3.7.0-orig/Include/sysmodule.h 2018-06-27 06:07:35.000000000 +0300
|
||||
+++ Python-3.7.0/Include/sysmodule.h 2018-06-30 11:17:48.631984800 +0300
|
||||
@@ -19,9 +19,9 @@
|
||||
PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user