mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 12:34:35 +04:00
python,python3: move PyPackage install rules in the beggining of the Package install rules
So that we can process Python sources installed by those rules, if we need to. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -53,6 +53,7 @@ define PyPackage
|
||||
$(call shexport,PyPackage/$(1)/filespec)
|
||||
|
||||
define Package/$(1)/install
|
||||
$(call PyPackage/$(1)/install,$$(1))
|
||||
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
|
||||
if [ -e files/python-package-install.sh ] ; then \
|
||||
$(SHELL) files/python-package-install.sh \
|
||||
@@ -66,7 +67,6 @@ define PyPackage
|
||||
echo "No 'python-package-install.sh' script found" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
$(call PyPackage/$(1)/install,$$(1))
|
||||
endef
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user