open make check

This commit is contained in:
weiwei_150212 2020-08-10 19:26:15 +08:00
parent 5c89e471aa
commit 3dbe357d21
2 changed files with 10 additions and 25 deletions

View File

@ -1,20 +0,0 @@
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
-
static PyObject *_current_interp_key(void)
{
PyInterpreterState *interp = PyThreadState_GET()->interp;
--
2.23.0

View File

@ -6,13 +6,12 @@ based on C-like declarations that you can often copy-paste from header files or
Name: python-%{_name} Name: python-%{_name}
Version: 1.14.0 Version: 1.14.0
Release: 1 Release: 2
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
@ -47,9 +46,9 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool
%py2_install %py2_install
%py3_install %py3_install
#%check %check
#PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/ PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/
#PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%files -n python2-%{_name} %files -n python2-%{_name}
%defattr(-,root,root) %defattr(-,root,root)
@ -70,6 +69,12 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool
%doc PKG-INFO README.md %doc PKG-INFO README.md
%changelog %changelog
* Mon Aug 10 2020 tianwei <tianwei12@huawei.com> - 1.14.0.-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:open make check
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1.14.0-1 * Thu Jul 23 2020 dingyue<dingyue5@huawei.com> - 1.14.0-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA