[node-patches] Change in ovirt-node[master]: Pre-compile plugin Python files so they don't get stripped

rbarry at redhat.com rbarry at redhat.com
Mon Jul 29 16:31:52 UTC 2013


Ryan Barry has uploaded a new change for review.

Change subject: Pre-compile plugin Python files so they don't get stripped
......................................................................

Pre-compile plugin Python files so they don't get stripped

Previously, the Python files were defined as _SCRIPT in automake.
Make them into _PYTHON so they automatically get compiled, and add
the compiled files to the RPMs so image-minimizer will leave
working plugins.

Change-Id: I390ca19b1abe29f19c508a9d4a41c4221d796b30
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=988484
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M ovirt-node.spec.in
M plugins/Makefile.am
2 files changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/31/17431/1

diff --git a/ovirt-node.spec.in b/ovirt-node.spec.in
index d583f2e..07fba03 100644
--- a/ovirt-node.spec.in
+++ b/ovirt-node.spec.in
@@ -494,15 +494,15 @@
 %{_sysconfdir}/ovirt-plugins.d/puppet.minimize
 %{_sysconfdir}/ovirt-commandline.d/puppet-args
 %{app_root}/puppet-plugin/puppet-operatingsystem.rb.patch
-%{_sysconfdir}/ovirt-config-boot.d/puppet_autoinstall.py
+%{_sysconfdir}/ovirt-config-boot.d/puppet_autoinstall.py*
 
 %files plugin-snmp
-%{python_sitelib}/ovirt_config_setup/snmp.py
-%{python_sitelib}/ovirt/node/setup/snmp/__init__.py
-%{python_sitelib}/ovirt/node/setup/snmp/snmp_model.py
-%{python_sitelib}/ovirt/node/setup/snmp/snmp_page.py
+%{python_sitelib}/ovirt_config_setup/snmp.py*
+%{python_sitelib}/ovirt/node/setup/snmp/__init__.py*
+%{python_sitelib}/ovirt/node/setup/snmp/snmp_model.py*
+%{python_sitelib}/ovirt/node/setup/snmp/snmp_page.py*
 %{_sysconfdir}/ovirt-plugins.d/snmp.minimize
-%{_sysconfdir}/ovirt-config-boot.d/snmp_autoinstall.py
+%{_sysconfdir}/ovirt-config-boot.d/snmp_autoinstall.py*
 
 
 %files plugin-cim
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 902607d..71134e3 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -23,7 +23,7 @@
 rbovirtsetupdir = $(localstatedir)/lib/puppet/facts
 
 # FIXME this can be removed
-dist_pyovirtconfigsetup_SCRIPTS = \
+dist_pyovirtconfigsetup_PYTHON = \
   snmp.py \
   cim.py
 
@@ -35,7 +35,7 @@
 dist_pluginsargs_DATA = \
   puppet-args
 
-dist_pyovirtconfigboot_SCRIPTS = \
+dist_pyovirtconfigboot_PYTHON = \
   snmp_autoinstall.py \
   puppet_autoinstall.py
 


-- 
To view, visit http://gerrit.ovirt.org/17431
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I390ca19b1abe29f19c508a9d4a41c4221d796b30
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list