From b2223ba97227b90c072c66489275665d0a249fc9 Mon Sep 17 00:00:00 2001 From: Garrett Holmstrom Date: Wed, 8 Apr 2015 18:27:01 -0700 Subject: [PATCH] Updated to latest python packaging guidelines --- python-boto.spec | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/python-boto.spec b/python-boto.spec index 1875e7a..c448cdb 100644 --- a/python-boto.spec +++ b/python-boto.spec @@ -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