commit 1bccc5f374d1bae43acaab23f27e51fe6cb9cdad
Author: Jacek Konieczny <[email protected]>
Date:   Sat Nov 28 18:06:43 2015 +0100

    automatic change: use py_build/py_install macros

 python-scipy.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-scipy.spec b/python-scipy.spec
index 27abe17..99a38f4 100644
--- a/python-scipy.spec
+++ b/python-scipy.spec
@@ -83,11 +83,11 @@ export LAPACK=%{_libdir}
 export UMFPACK=%{_libdir}
 
 %if %{with python2}
-%{__python} setup.py build --fcompiler=gnu95 --build-base build-2
+%py_build --fcompiler=gnu95 --build-base build-2
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --fcompiler=gnu95 --build-base build-3
+%py3_build --fcompiler=gnu95 --build-base build-3
 %endif
 
 %install
@@ -97,11 +97,7 @@ export LAPACK=%{_libdir}
 export UMFPACK=%{_libdir}
 
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %{__mv} $RPM_BUILD_ROOT%{py_sitedir}/%{module}/weave/examples \
@@ -115,11 +111,7 @@ install -d 
$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 
 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/*.txt
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/*/{benchmarks,tests}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-scipy.git/commitdiff/1bccc5f374d1bae43acaab23f27e51fe6cb9cdad

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to