projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b94e3c
)
python: add default PyPackage/filespec if not defined
740/head
author
Alexandru Ardelean
<aa@ocedo.com>
Mon, 15 Dec 2014 08:19:12 +0000
(10:19 +0200)
committer
Alexandru Ardelean
<aa@ocedo.com>
Tue, 6 Jan 2015 12:15:02 +0000
(14:15 +0200)
Most packages will install in /usr/lib/python$(PYTHON_VERSION)/site-packages
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/files/python-package.mk
patch
|
blob
|
history
diff --git
a/lang/python/files/python-package.mk
b/lang/python/files/python-package.mk
index 71d500d1d77a405c50ca4bc26c9311a31f9c6ceb..d9e8df9c47143427c5e0eaf0fb3c97f484db8aa6 100644
(file)
--- a/
lang/python/files/python-package.mk
+++ b/
lang/python/files/python-package.mk
@@
-38,6
+38,14
@@
ifdef CONFIG_USE_MIPS16
endif
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)
define Package/$(1)/install
@@
-98,3
+106,4
@@
define Build/Compile/PyMod
)
find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
endef
+