summaryrefslogtreecommitdiff
path: root/lang/python/python3/files/python3-package-urllib.mk
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2019-02-26 15:37:47 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2019-02-26 15:37:48 +0200
commit82981d1d55357acd2e88947f56ae124dc1971ae9 (patch)
tree3e687fdbf35377f2fed5f794cef56eaf95485d19 /lang/python/python3/files/python3-package-urllib.mk
parent3d35f152046b0ced01ac762e71d9beab9f387dd9 (diff)
python3: split python3-urllib from python3-light
This is the result of this discussion: https://github.com/openwrt/packages/issues/8285 `urllib.request` requires the `email` module/lib, which was part of python3-light. This change moves the Lib/urllib folder from the python3-light into it's own package, making it lighter. At least this way, users that want `urllib` (on top of `python3-light`) will be forced to install it via opkg and this will make sure `python3-email` gets installed as well. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/python3/files/python3-package-urllib.mk')
-rw-r--r--lang/python/python3/files/python3-package-urllib.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/python/python3/files/python3-package-urllib.mk b/lang/python/python3/files/python3-package-urllib.mk
new file mode 100644
index 000000000..ddd7b1dbf
--- /dev/null
+++ b/lang/python/python3/files/python3-package-urllib.mk
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2019 Alexandru Ardelean <ardeleanalex@gmail.com>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python3-urllib
+$(call Package/python3/Default)
+ TITLE:=Python $(PYTHON3_VERSION) URL library module
+ DEPENDS:=+python3-light +python3-email
+endef
+
+$(eval $(call Py3BasePackage,python3-urllib, \
+ /usr/lib/python$(PYTHON3_VERSION)/urllib \
+))