summaryrefslogtreecommitdiff
path: root/lang/python/files/python-package-sqlite3.mk
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2015-03-02 19:53:19 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2015-03-06 15:19:29 +0200
commit0d072f2b42bf1191c42f3e44a4ae77883728ae66 (patch)
tree66d5e11f14f640c714ac19dc27d662a7206f3ac7 /lang/python/files/python-package-sqlite3.mk
parent9941dbd1e540bda1ad650b13ae356cb4438d8859 (diff)
python: packetize some python modules
Packetize some Python modules to reduce size of the overall Python package. Basically, a new package is introduced, call `python-light`, and everything that's extra (or big) is put in other packages. The `python` package becomes a metapackage that installs `python-light` along with the rest of the packages. Base work started by Jan Čermák. Signed-off-by: Jan Čermák <jan.cermak@nic.cz> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files/python-package-sqlite3.mk')
-rw-r--r--lang/python/files/python-package-sqlite3.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/python/files/python-package-sqlite3.mk b/lang/python/files/python-package-sqlite3.mk
new file mode 100644
index 000000000..c5abb122e
--- /dev/null
+++ b/lang/python/files/python-package-sqlite3.mk
@@ -0,0 +1,17 @@
+#
+# 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-sqlite3
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) sqlite3 module
+ DEPENDS:=+python-light +libsqlite3
+endef
+
+$(eval $(call PyBasePackage,python-sqlite3, \
+ /usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sqlite3.so \
+ /usr/lib/python$(PYTHON_VERSION)/sqlite3 \
+))