]> git.pld-linux.org Git - packages/python3-scipy.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:43 +0000 (18:06 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:43 +0000 (18:06 +0100)
python-scipy.spec

index 27abe178fac17114c9d9e31fe963fdf5e9250e8f..99a38f4d0ee2a40c5eb03945a95b7ba0714b9f68 100644 (file)
@@ -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}
This page took 0.071923 seconds and 4 git commands to generate.