|
@@ -205,8 +205,8 @@ define PYTHON3_REMOVE_USELESS_FILES
|
|
|
rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)-config
|
|
|
rm -f $(TARGET_DIR)/usr/bin/python3-config
|
|
|
find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config-$(PYTHON3_VERSION_MAJOR)*/ \
|
|
|
- -type f -not -name Makefile -exec rm -rf {} \;
|
|
|
- find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/ -type d \
|
|
|
+ -depth -type f -not -name Makefile -exec rm -rf {} \;
|
|
|
+ find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/ -depth -type d \
|
|
|
-name __pycache__ -exec rm -rf {} \;
|
|
|
endef
|
|
|
|