endef
define PyPackage/python-base/install
+ $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
$(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python
$(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python2
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib/
$(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 \
echo "No 'python-package-install.sh' script found" ; \
exit 1 ; \
fi
- $(call PyPackage/$(1)/install,$$(1))
endef
endef
$(call shexport,Py3Package/$(1)/filespec)
define Package/$(1)/install
+ $(call Py3Package/$(1)/install,$$(1))
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
if [ -e files/python3-package-install.sh ] ; then \
$(SHELL) files/python3-package-install.sh \
echo "No 'python3-package-install.sh' script found" ; \
exit 1 ; \
fi
- $(call Py3Package/$(1)/install,$$(1))
endef
endef