!4 update to 1.14.0

Merge pull request !4 from phanddy/master
This commit is contained in:
openeuler-ci-bot 2020-07-27 17:43:48 +08:00 committed by Gitee
commit 5c89e471aa
4 changed files with 22 additions and 9 deletions

Binary file not shown.

BIN
cffi-1.14.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,20 @@
diff -Naur a/c/call_python.c b/c/call_python.c
--- a/c/call_python.c 2020-06-18 15:00:52.843000000 +0800
+++ b/c/call_python.c 2020-06-18 15:05:11.254000000 +0800
@@ -1,3 +1,9 @@
+#if PY_VERSION_HEX >= 0x03080000
diff --git a/c/call_python.c b/c/call_python.c
index d3d2e17..d291eb3 100644
--- a/c/call_python.c
+++ b/c/call_python.c
@@ -1,8 +1,10 @@
#if PY_VERSION_HEX >= 0x03080000
-# define HAVE_PYINTERPSTATE_GETDICT
+# define Py_BUILD_CORE
+/* for access to the fields of PyInterpreterState */
+# include "internal/pycore_pystate.h"
+# 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

View File

@ -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.
Name: python-%{_name}
Version: 1.11.5
Release: 11
Version: 1.14.0
Release: 1
Summary: %{_summary}
License: MIT
URL: http://cffi.readthedocs.org
@ -70,6 +70,12 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool
%doc PKG-INFO README.md
%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
- Type:enhancement
- ID:NA