diff --git a/python-biopython.spec b/python-biopython.spec index f3e5232..2888de3 100644 --- a/python-biopython.spec +++ b/python-biopython.spec @@ -237,7 +237,7 @@ popd pushd python2 export PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitearch} find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python2}" -find . -name '__init__.py' | xargs rm -f +find ../ -name '__init__.py' | xargs rm -f for test in `ls test_*.py | grep -v Tutorial`; do %{__python2} run_tests.py --offline -v ${test} done @@ -248,7 +248,7 @@ popd %if 0%{?with_python3} pushd python3/Tests find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python3}" -find . -name '__init__.py' | xargs rm -f +find ../ -name '__init__.py' | xargs rm -f # See https://github.com/biopython/biopython/issues/2128; https://github.com/biopython/biopython/issues/2120 # and https://bugs.python.org/issue24214 %if 0%{?python3_version_nodots} == 38 @@ -267,7 +267,7 @@ popd %if 0%{?with_python3_other} pushd python%{python3_other_pkgversion}/Tests find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python3_other}" -find . -name '__init__.py' | xargs rm -f +find ../ -name '__init__.py' | xargs rm -f for test in `ls test_*.py | grep -v Nexus | grep -v Phylo | grep -v Tutorial | grep -v bgzf`; do echo $LANG export PYTHONPATH=$RPM_BUILD_ROOT%{python3_other_sitearch}