Updated to latest python packaging guidelines

f38
Garrett Holmstrom 10 years ago
parent 487e638d03
commit b2223ba972

@ -98,28 +98,18 @@ cp -p %{SOURCE1} .
rm -r boto.egg-info
%if %{with python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
%{__python2} setup.py build
%if %{with python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif # with python3
%install
%if %{with python3}
# Scripts only work with python2
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
popd
rm -f $RPM_BUILD_ROOT/%{_bindir}/*
%endif # with python3
@ -134,9 +124,7 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/*
%if %{with unittests}
%{__python2} tests/test.py default
%if %{with python3}
pushd %{py3dir}
%{__python3} tests/test.py default
popd
%endif # with python3
%endif # with unittests

Loading…
Cancel
Save