commit
5c89e471aa
Binary file not shown.
BIN
cffi-1.14.0.tar.gz
Normal file
BIN
cffi-1.14.0.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,20 @@
|
|||||||
diff -Naur a/c/call_python.c b/c/call_python.c
|
diff --git a/c/call_python.c b/c/call_python.c
|
||||||
--- a/c/call_python.c 2020-06-18 15:00:52.843000000 +0800
|
index d3d2e17..d291eb3 100644
|
||||||
+++ b/c/call_python.c 2020-06-18 15:05:11.254000000 +0800
|
--- a/c/call_python.c
|
||||||
@@ -1,3 +1,9 @@
|
+++ b/c/call_python.c
|
||||||
+#if PY_VERSION_HEX >= 0x03080000
|
@@ -1,8 +1,10 @@
|
||||||
|
#if PY_VERSION_HEX >= 0x03080000
|
||||||
|
-# define HAVE_PYINTERPSTATE_GETDICT
|
||||||
+# define Py_BUILD_CORE
|
+# define Py_BUILD_CORE
|
||||||
+/* for access to the fields of PyInterpreterState */
|
+/* for access to the fields of PyInterpreterState */
|
||||||
+# include "internal/pycore_pystate.h"
|
+# include "internal/pycore_pystate.h"
|
||||||
+# undef Py_BUILD_CORE
|
+# undef Py_BUILD_CORE
|
||||||
+#endif
|
#endif
|
||||||
|
|
||||||
static PyObject *_get_interpstate_dict(void)
|
-
|
||||||
|
static PyObject *_current_interp_key(void)
|
||||||
{
|
{
|
||||||
|
PyInterpreterState *interp = PyThreadState_GET()->interp;
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,8 @@ C Foreign Function Interface for Python. Interact with almost any C code from Py
|
|||||||
based on C-like declarations that you can often copy-paste from header files or documentation.
|
based on C-like declarations that you can often copy-paste from header files or documentation.
|
||||||
|
|
||||||
Name: python-%{_name}
|
Name: python-%{_name}
|
||||||
Version: 1.11.5
|
Version: 1.14.0
|
||||||
Release: 11
|
Release: 1
|
||||||
Summary: %{_summary}
|
Summary: %{_summary}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://cffi.readthedocs.org
|
URL: http://cffi.readthedocs.org
|
||||||
@ -70,6 +70,12 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool
|
|||||||
%doc PKG-INFO README.md
|
%doc PKG-INFO README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1.14.0-1
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:NA
|
||||||
|
|
||||||
* Thu Jun 18 2020 gaochao<gaochao52@huawei.com> - 1.11.5-11
|
* Thu Jun 18 2020 gaochao<gaochao52@huawei.com> - 1.11.5-11
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user