[packages/python-astroid] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:15:36 CET 2015
commit 08f50e0d9955d6e120c284c2ad2d6b3f762934f9
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-astroid.spec | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/python-astroid.spec b/python-astroid.spec
index fd2ee5d..15f3852 100644
--- a/python-astroid.spec
+++ b/python-astroid.spec
@@ -79,25 +79,23 @@ potrzebami pylinta. Dawniej nazywała się logilab-astng.
%build
%if %{with python2}
-%{__python} setup.py build
+%py_build
%endif
%if %{with python3}
-%{__python3} setup.py build --build-base=build3
+%py3_build --build-base=build3
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python3}
-%{__python3} setup.py build --build-base=build3 install \
+%py3_build --build-base=build3 install \
--optimize=2 \
--root=$RPM_BUILD_ROOT
%endif
%if %{with python2}
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_postclean
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-astroid.git/commitdiff/08f50e0d9955d6e120c284c2ad2d6b3f762934f9
More information about the pld-cvs-commit
mailing list