Fix other sitelib macros as the package is not noarch anymore
This commit is contained in:
parent
36999694a1
commit
b53d76139f
@ -1,7 +1,7 @@
|
|||||||
%if 0%{?fedora} > 12
|
%if 0%{?fedora} > 12
|
||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%else
|
%else
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global pkgname tornado
|
%global pkgname tornado
|
||||||
@ -99,12 +99,12 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
PATH=$PATH:%{buildroot}%{python3_sitelib}/%{pkgname}
|
PATH=$PATH:%{buildroot}%{python3_sitearch}/%{pkgname}
|
||||||
python3 setup.py install --root=%{buildroot}
|
python3 setup.py install --root=%{buildroot}
|
||||||
popd
|
popd
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
PATH=$PATH:%{buildroot}%{python_sitelib}/%{pkgname}
|
PATH=$PATH:%{buildroot}%{python_sitearch}/%{pkgname}
|
||||||
python setup.py install --root=%{buildroot}
|
python setup.py install --root=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
@ -115,11 +115,11 @@ rm -rf %{buildroot}
|
|||||||
%if "%{dist}" != ".el6"
|
%if "%{dist}" != ".el6"
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
PYTHONPATH=%{python3_sitelib} \
|
PYTHONPATH=%{python3_sitearch} \
|
||||||
python3 -m tornado.test.runtests --verbose || :
|
python3 -m tornado.test.runtests --verbose || :
|
||||||
popd
|
popd
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
PYTHONPATH=%{python_sitelib} \
|
PYTHONPATH=%{python_sitearch} \
|
||||||
python -m tornado.test.runtests --verbose
|
python -m tornado.test.runtests --verbose
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user