mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 10:38:21 +04:00
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>
This commit is contained in:
17
lang/python/files/python-package-bsddb.mk
Normal file
17
lang/python/files/python-package-bsddb.mk
Normal file
@@ -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-bsddb
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) bsddb module
|
||||
DEPENDS:=+python-light +libdb47
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-bsddb, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/bsddb \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so \
|
||||
))
|
||||
22
lang/python/files/python-package-codecs.mk
Normal file
22
lang/python/files/python-package-codecs.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# 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-codecs
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) codecs + unicode support
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-codecs, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_cn.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_hk.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_iso2022.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_jp.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_kr.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_tw.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/unicodedata.so \
|
||||
))
|
||||
16
lang/python/files/python-package-dbm.mk
Normal file
16
lang/python/files/python-package-dbm.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# 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-dbm
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) dbm module
|
||||
DEPENDS:=+python-light +libdb47
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-dbm, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/dbm.so \
|
||||
))
|
||||
16
lang/python/files/python-package-gdbm.mk
Normal file
16
lang/python/files/python-package-gdbm.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# 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-gdbm
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) gdbm module
|
||||
DEPENDS:=+python-light +libgdbm
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-gdbm, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/gdbm.so \
|
||||
))
|
||||
17
lang/python/files/python-package-ncurses.mk
Normal file
17
lang/python/files/python-package-ncurses.mk
Normal file
@@ -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-ncurses
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) ncurses module
|
||||
DEPENDS:=+python-light +libncursesw
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-ncurses, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so \
|
||||
))
|
||||
17
lang/python/files/python-package-openssl.mk
Normal file
17
lang/python/files/python-package-openssl.mk
Normal file
@@ -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-openssl
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) SSL module
|
||||
DEPENDS:=+python-light +libopenssl
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-openssl, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_hashlib.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ssl.so \
|
||||
))
|
||||
17
lang/python/files/python-package-pydoc.mk
Normal file
17
lang/python/files/python-package-pydoc.mk
Normal file
@@ -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-pydoc
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) pydoc module
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-pydoc, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/pydoc.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/pydoc_data \
|
||||
))
|
||||
17
lang/python/files/python-package-sqlite3.mk
Normal file
17
lang/python/files/python-package-sqlite3.mk
Normal file
@@ -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 \
|
||||
))
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2007-2014 OpenWrt.org
|
||||
# Copyright (C) 2006-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
||||
Reference in New Issue
Block a user