|
|
|
@ -230,11 +230,7 @@ ln -s $PWD/Images $PWD/build/%py2_libbuilddir/Images
|
|
|
|
|
cp -R $PWD/Tests $PWD/build/%py2_libbuilddir/Tests
|
|
|
|
|
cp -R $PWD/selftest.py $PWD/build/%py2_libbuilddir/selftest.py
|
|
|
|
|
pushd build/%py2_libbuilddir
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
PYTHONPATH=$PWD %{__python2} selftest.py || :
|
|
|
|
|
%else
|
|
|
|
|
PYTHONPATH=$PWD %{__python2} selftest.py
|
|
|
|
|
%endif
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
@ -243,11 +239,7 @@ ln -s $PWD/Images $PWD/build/%py3_libbuilddir/Images
|
|
|
|
|
cp -R $PWD/Tests $PWD/build/%py3_libbuilddir/Tests
|
|
|
|
|
cp -R $PWD/selftest.py $PWD/build/%py3_libbuilddir/selftest.py
|
|
|
|
|
pushd build/%py3_libbuilddir
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
PYTHONPATH=$PWD %{__python3} selftest.py || :
|
|
|
|
|
%else
|
|
|
|
|
PYTHONPATH=$PWD %{__python3} selftest.py
|
|
|
|
|
%endif
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|