From 3dbe357d21bd131e405b5df88688f2e99eff4169 Mon Sep 17 00:00:00 2001 From: weiwei_150212 Date: Mon, 10 Aug 2020 19:26:15 +0800 Subject: [PATCH] open make check --- potential-fix-for-Py-3.8.patch | 20 -------------------- python-cffi.spec | 15 ++++++++++----- 2 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 potential-fix-for-Py-3.8.patch diff --git a/potential-fix-for-Py-3.8.patch b/potential-fix-for-Py-3.8.patch deleted file mode 100644 index d6e1b7b..0000000 --- a/potential-fix-for-Py-3.8.patch +++ /dev/null @@ -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 - diff --git a/python-cffi.spec b/python-cffi.spec index f09f66c..6772bc1 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -6,13 +6,12 @@ based on C-like declarations that you can often copy-paste from header files or Name: python-%{_name} Version: 1.14.0 -Release: 1 +Release: 2 Summary: %{_summary} License: MIT URL: http://cffi.readthedocs.org 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 @@ -47,9 +46,9 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool %py2_install %py3_install -#%check -#PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/ -#PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ +%check +PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/ +PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ %files -n python2-%{_name} %defattr(-,root,root) @@ -70,6 +69,12 @@ Buildrequires: python3-devel python3-pycparser python3-pytest python3-setuptool %doc PKG-INFO README.md %changelog +* Mon Aug 10 2020 tianwei - 1.14.0.-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:open make check + * Thu Jul 23 2020 dingyue - 1.14.0-1 - Type:enhancement - ID:NA -- Gitee