Yedidyah Bar David has uploaded a new change for review. Change subject: packaging: Build pyc/pyo files ......................................................................
packaging: Build pyc/pyo files Add to built packages .pyc and .pyo files. This was done so far by rpmbuild if the package redhat-rpm-config was installed. Do this now directly by make. Change-Id: Ia4098fb7f8f664e6c1df678717c8ee230a3113fe Signed-off-by: Yedidyah Bar David <d...@redhat.com> --- M ovirt-engine.spec.in 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/20/22420/1 diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in index 487abe7..7ee0852 100644 --- a/ovirt-engine.spec.in +++ b/ovirt-engine.spec.in @@ -152,6 +152,7 @@ BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: make +BuildRequires: python %if %{ovirt_require_maven} BuildRequires: maven %endif @@ -491,6 +492,10 @@ rm -fr "%{buildroot}" make %{make_common_opts} install DESTDIR="%{buildroot}" +# Compile python files +%{__python} -m compileall -f -q -d / "%{buildroot}" +%{__python} -O -m compileall -f -q -d / "%{buildroot}" + # # /var creation # -- To view, visit http://gerrit.ovirt.org/22420 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia4098fb7f8f664e6c1df678717c8ee230a3113fe Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.3 Gerrit-Owner: Yedidyah Bar David <d...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches