From d69d8ec0b913f764204ea2a7cf63044db7c6f853 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 13 Mar 2015 18:12:46 +0200 Subject: python: refine packaging and split more modules into packages Rule of thumb is: any Python file that is greater than 100kb (or adds a dependency with which it adds more than 100 kb) should be a pretty useful/commonly used lib to stay in `python-light`. An example, is the Python IO lib, which summarized (Python source + binary module) is over 200kb. Also moved some files that should have been put into previously existing packages before, and re-organized the packages a bit. Signed-off-by: Alexandru Ardelean --- lang/python/files/python-package-db.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lang/python/files/python-package-db.mk (limited to 'lang/python/files/python-package-db.mk') diff --git a/lang/python/files/python-package-db.mk b/lang/python/files/python-package-db.mk new file mode 100644 index 000000000..26f35d882 --- /dev/null +++ b/lang/python/files/python-package-db.mk @@ -0,0 +1,18 @@ +# +# Copyright (C) 2006-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Package/python-db +$(call Package/python/Default) + TITLE:=Python $(PYTHON_VERSION) db module + DEPENDS:=+python-light +libdb47 +endef + +$(eval $(call PyBasePackage,python-db, \ + /usr/lib/python$(PYTHON_VERSION)/bsddb \ + /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so \ + /usr/lib/python$(PYTHON_VERSION)/lib-dynload/dbm.so \ +)) -- cgit