mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 12:34:35 +04:00
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 <ardeleanalex@gmail.com>
This commit is contained in:
20
lang/python/files/python-package-xml.mk
Normal file
20
lang/python/files/python-package-xml.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# 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-xml
|
||||
$(call Package/python/Default)
|
||||
TITLE:=Python $(PYTHON_VERSION) xml libs
|
||||
DEPENDS:=+python-light
|
||||
endef
|
||||
|
||||
$(eval $(call PyBasePackage,python-xml, \
|
||||
/usr/lib/python$(PYTHON_VERSION)/xml \
|
||||
/usr/lib/python$(PYTHON_VERSION)/xmllib.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/xmlrpclib.py \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_elementtree.so \
|
||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/pyexpat.so \
|
||||
))
|
||||
Reference in New Issue
Block a user