[Buildroot] [PATCH v3 3/9] python: remove *.pyo files

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue May 17 20:49:20 UTC 2016


Hello,

On Sun, 1 May 2016 22:45:55 +0200, Samuel Martin wrote:

> > +# In all cases, we don't want to keep the optimized .pyo files
> > +ifeq ($(BR2_PACKAGE_PYTHON),y)
> > +define PYTHON_REMOVE_PYO_FILES
> > +       find $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR) -name '*.pyo' -print0 | xargs -0 rm -f  
> I think xargs should be called with the --no-run-if-empty option.

Thanks for the hint, I've fixed this patch to add the
--no-run-if-empty. Other occurrences will have to be fixed separately.

Patch applied to next with your suggested change.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list