python: add default PyPackage/filespec if not defined
Most packages will install in /usr/lib/python$(PYTHON_VERSION)/site-packages Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
9b94e3cb6e
commit
8b86c1528a
1 changed files with 9 additions and 0 deletions
|
@ -38,6 +38,14 @@ ifdef CONFIG_USE_MIPS16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define PyPackage
|
define PyPackage
|
||||||
|
|
||||||
|
# Add default PyPackage filespec none defined
|
||||||
|
ifndef PyPackage/$(1)/filespec
|
||||||
|
define PyPackage/$(1)/filespec
|
||||||
|
+|$(PYTHON_PKG_DIR)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
$(call shexport,PyPackage/$(1)/filespec)
|
$(call shexport,PyPackage/$(1)/filespec)
|
||||||
|
|
||||||
define Package/$(1)/install
|
define Package/$(1)/install
|
||||||
|
@ -98,3 +106,4 @@ define Build/Compile/PyMod
|
||||||
)
|
)
|
||||||
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue