From 0d072f2b42bf1191c42f3e44a4ae77883728ae66 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 2 Mar 2015 19:53:19 +0200 Subject: python: packetize some python modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Alexandru Ardelean --- lang/python/files/python-package-openssl.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lang/python/files/python-package-openssl.mk (limited to 'lang/python/files/python-package-openssl.mk') diff --git a/lang/python/files/python-package-openssl.mk b/lang/python/files/python-package-openssl.mk new file mode 100644 index 000000000..4d897eb81 --- /dev/null +++ b/lang/python/files/python-package-openssl.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-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 \ +)) -- cgit