[packages/sip] - package __pycache__ files for python3

qboosh qboosh at pld-linux.org
Tue Jul 4 16:11:10 CEST 2017


commit 15201a5be1eeb207cc6e8cdf5b1685db8f1f2582
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 4 16:12:42 2017 +0200

    - package __pycache__ files for python3

 sip.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/sip.spec b/sip.spec
index de106df..1c84fd1 100644
--- a/sip.spec
+++ b/sip.spec
@@ -1,4 +1,3 @@
-# TODO: __pycache__ for python3-sip-devel
 #
 # Conditional build:
 %bcond_without	python2	# CPython 2.x modules
@@ -159,6 +158,9 @@ install -d $RPM_BUILD_ROOT%{_sipfilesdir}
 %if %{with python3}
 %{__make} -C build-py3 install \
 	DESTDIR=$RPM_BUILD_ROOT
+
+%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
 %endif
 
 %clean
@@ -194,6 +196,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{py3_sitedir}/sipconfig.py
 %{py3_sitedir}/sipdistutils.py
+%{py3_sitedir}/__pycache__/sipconfig.cpython-*.py[co]
+%{py3_sitedir}/__pycache__/sipdistutils.cpython-*.py[co]
 %{py3_sitedir}/sip.pyi
 %{py3_incdir}/sip.h
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sip.git/commitdiff/15201a5be1eeb207cc6e8cdf5b1685db8f1f2582



More information about the pld-cvs-commit mailing list