diff --git a/python-jep.spec b/python-jep.spec index 4bb790c..18e72fc 100644 --- a/python-jep.spec +++ b/python-jep.spec @@ -20,12 +20,14 @@ Some benefits of embedding CPython in a JVM:\ Name: python-%{srcname} Version: 3.9.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Embed Python in Java License: zlib URL: https://github.com/ninia/%{srcname} Source0: %{url}/archive/v%{version}.tar.gz +# rhbz#1792062 Stop using daemon thread in test using sub-interpreter for python 3.9 +Patch0: %{url}/commit/a31d461c6cacc96de68d68320eaa83e19a45d0cc.patch BuildRequires: python3-devel BuildRequires: python3-numpy @@ -52,7 +54,7 @@ BuildArch: noarch %prep -%autosetup -n%{srcname}-%{version} +%autosetup -p1 -n%{srcname}-%{version} find . -name \*.jar -print -delete @@ -75,7 +77,10 @@ cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name} export JAVA_HOME=%{_prefix}/lib/jvm/java # be more verbose about tests, FIXME ugly hack! sed -i -r 's:TextTestRunner\(:\0verbosity=2:' src/test/python/runtests.py -%{__python3} setup.py test +%{__python3} setup.py test || cat *.log +# jdk may crash aka 'An error report file with more information is saved' +: ### core dumps ### +cat core* || : %files -n python3-%{srcname} @@ -92,6 +97,9 @@ sed -i -r 's:TextTestRunner\(:\0verbosity=2:' src/test/python/runtests.py %changelog +* Sat Jun 06 2020 Raphael Groner - 3.9.0-5 +- add patch for python 3.9, avoid daemon thread, rhbz#1792062 + * Tue May 26 2020 Miro HronĨok - 3.9.0-4 - Rebuilt for Python 3.9