Skip to content

Support excluding .py files from removal

Thomas Petazzoni buildroot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/{pkg-generic, python, python3}: add mechanism to exclude .py files from removalpackage/pkg-generic.mk package/python/python.mk package/python3/python3.mk+7 -22 replies
2/2package/opencv3: ensure the python module works when BR2_PACKAGE_PYTHON{, 3}_PYC_ONLY=ypackage/opencv3/opencv3.mk+2 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Buildroot] [PATCH v2 0/2] Support excluding .py files from removal

Hello,

This is a v2 of the patch series fixing the OpenCV3 issue due to the removal of .py files when only .pyc files are kept on the target.

As reported by Peter, the v1 caused some check-package warnings due to the PYTHON_KEEP_PY_FILES/PYTHON3_KEEP_PY_FILES variables that were set in opencv3.mk: they have a prefix that doesn't match the package name.

So in the end, we go ahead and create a <pkg>_KEEP_PY_FILES variable, that gets collected by pkg-generic.mk into a global PYTHON_KEEP_PY_FILES, which in turn is observed by python.mk and python3.mk.

Best regards,

Thomas

Thomas Petazzoni (2):
package/{pkg-generic,python,python3}: add mechanism to exclude .py
files from removal
package/opencv3: ensure the python module works when

    BR2_PACKAGE_PYTHON{,3}_PYC_ONLY=y
 package/opencv3/opencv3.mk | 2 ++
 package/pkg-generic.mk     | 1 +
 package/python/python.mk   | 4 +++-
 package/python3/python3.mk | 4 +++-
 4 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.23.0