mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
python,python3: drop remove .pyc & .pyo files
We'll control in the install phase what we ship [byte-codes or source files] Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -54,7 +54,7 @@ define PyPackage
|
|||||||
|
|
||||||
define Package/$(1)/install
|
define Package/$(1)/install
|
||||||
$(call PyPackage/$(1)/install,$$(1))
|
$(call PyPackage/$(1)/install,$$(1))
|
||||||
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
||||||
if [ -e files/python-package-install.sh ] ; then \
|
if [ -e files/python-package-install.sh ] ; then \
|
||||||
$(SHELL) files/python-package-install.sh \
|
$(SHELL) files/python-package-install.sh \
|
||||||
"$(PKG_INSTALL_DIR)" "$$(1)" \
|
"$(PKG_INSTALL_DIR)" "$$(1)" \
|
||||||
@@ -103,7 +103,7 @@ define Build/Compile/PyMod
|
|||||||
cd $(PKG_BUILD_DIR)/$(strip $(1)), \
|
cd $(PKG_BUILD_DIR)/$(strip $(1)), \
|
||||||
./setup.py $(2), \
|
./setup.py $(2), \
|
||||||
$(3))
|
$(3))
|
||||||
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PyBuild/Compile/Default
|
define PyBuild/Compile/Default
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ define Py3Package
|
|||||||
|
|
||||||
define Package/$(1)/install
|
define Package/$(1)/install
|
||||||
$(call Py3Package/$(1)/install,$$(1))
|
$(call Py3Package/$(1)/install,$$(1))
|
||||||
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
||||||
if [ -e files/python3-package-install.sh ] ; then \
|
if [ -e files/python3-package-install.sh ] ; then \
|
||||||
$(SHELL) files/python3-package-install.sh \
|
$(SHELL) files/python3-package-install.sh \
|
||||||
"$(PKG_INSTALL_DIR)" "$$(1)" \
|
"$(PKG_INSTALL_DIR)" "$$(1)" \
|
||||||
@@ -103,7 +103,7 @@ define Build/Compile/Py3Mod
|
|||||||
cd $(PKG_BUILD_DIR)/$(strip $(1)), \
|
cd $(PKG_BUILD_DIR)/$(strip $(1)), \
|
||||||
./setup.py $(2), \
|
./setup.py $(2), \
|
||||||
$(3))
|
$(3))
|
||||||
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" -o -name "*\.exe" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Py3Build/Compile/Default
|
define Py3Build/Compile/Default
|
||||||
|
|||||||
Reference in New Issue
Block a user