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

index 4350c26d5018bea1cae4533b6988f5a752e9bb8a..2c3732cb0235c7f99fe8ba70d16ec12b5baa7260 100644 (file)
@@ -32,7 +32,7 @@ recursively converts from a dict to a Bunch.
 dos2unix LICENSE.txt README.rst
 
 %build
-%{__python} setup.py build
+%py_build
 
 %if %{with tests}
 PYTHONPATH=build/lib nosetests-%{py_ver} --with-doctest
@@ -41,10 +41,7 @@ PYTHONPATH=build/lib %{__python} build/lib/bunch/test.py
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-       --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 rm $RPM_BUILD_ROOT%{py_sitescriptdir}/bunch/test.*
 
This page took 0.077552 seconds and 4 git commands to generate.