diff --git a/python-jep.spec b/python-jep.spec index 00b7d77..96ab813 100644 --- a/python-jep.spec +++ b/python-jep.spec @@ -20,7 +20,7 @@ Some benefits of embedding CPython in a JVM:\ Name: python-%{srcname} Version: 3.8.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Embed Python in Java License: zlib @@ -72,17 +72,20 @@ cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name} %check -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 +export PYTHONPATH=%{buildroot}/%{python3_sitearch} +export CLASSPATH=${PYTHONPATH}/%{srcname}/%{srcname}-%{version}.jar +export CLASSPATH=${CLASSPATH}:build/java/%{srcname}-%{version}-test.jar +java jep.Run src/test/python/runtests.py %files -n python3-%{srcname} %license LICENSE %doc README.rst %doc AUTHORS release_notes/ -%{python3_sitearch}/* +%{python3_sitearch}/%{srcname}/ +%{python3_sitearch}/%{srcname}-%{version}-py*.egg-info %{_bindir}/%{srcname} %files javadoc @@ -91,6 +94,10 @@ sed -i -r 's:TextTestRunner\(:\0verbosity=2:' src/test/python/runtests.py %changelog +* Fri May 10 2019 Raphael Groner - 3.8.2-3 +- adjust execution of tests to fix for python 3.8, rhbz#1706238 +- fix path of module installation + * Sat Feb 02 2019 Fedora Release Engineering - 3.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild