[packages/python-numpy] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:32:51 CET 2015


commit 5a9990bf0da10b487efce37acc87e4691593b1ca
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:43 2015 +0100

    automatic change: use py_build/py_install macros

 python-numpy.spec | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/python-numpy.spec b/python-numpy.spec
index 9e38df1..2a5b93b 100644
--- a/python-numpy.spec
+++ b/python-numpy.spec
@@ -133,19 +133,18 @@ CC="%{__cc}"; export CC
 CFLAGS="%{rpmcflags}"; export CFLAGS
 
 %if %{with python2}
-%{__python} setup.py build
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py install \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
@@ -157,8 +156,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
-%{__python3} setup.py install \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 
 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-numpy.git/commitdiff/5a9990bf0da10b487efce37acc87e4691593b1ca



More information about the pld-cvs-commit mailing list