potential fix for Python3.8
This commit is contained in:
parent
8e5a62f7be
commit
b0048f8ad7
13
potential-fix-for-Py-3.8.patch
Normal file
13
potential-fix-for-Py-3.8.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
+# define Py_BUILD_CORE
|
||||||
|
+/* for access to the fields of PyInterpreterState */
|
||||||
|
+# include "internal/pycore_pystate.h"
|
||||||
|
+# undef Py_BUILD_CORE
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
static PyObject *_get_interpstate_dict(void)
|
||||||
|
{
|
||||||
@ -6,12 +6,14 @@ based on C-like declarations that you can often copy-paste from header files or
|
|||||||
|
|
||||||
Name: python-%{_name}
|
Name: python-%{_name}
|
||||||
Version: 1.11.5
|
Version: 1.11.5
|
||||||
Release: 10
|
Release: 11
|
||||||
Summary: %{_summary}
|
Summary: %{_summary}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://cffi.readthedocs.org
|
URL: http://cffi.readthedocs.org
|
||||||
Source0: https://files.pythonhosted.org/packages/source/c/cffi/%{_name}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/c/cffi/%{_name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0001: potential-fix-for-Py-3.8.patch
|
||||||
|
|
||||||
Buildrequires: gdb libffi-devel gcc-c++ gcc
|
Buildrequires: gdb libffi-devel gcc-c++ gcc
|
||||||
|
|
||||||
%?python_enable_dependency_generator
|
%?python_enable_dependency_generator
|
||||||
@ -68,6 +70,12 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
|||||||
%doc PKG-INFO README.md
|
%doc PKG-INFO README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 18 2020 gaochao<gaochao52@huawei.com> - 1.11.5-11
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:potential fix for python3.8
|
||||||
|
|
||||||
* Tue Nov 5 2019 shenyangyang<shenyangyang4@huawei.com> - 1.11.5-10
|
* Tue Nov 5 2019 shenyangyang<shenyangyang4@huawei.com> - 1.11.5-10
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user