Merge pull request #1034 from commodo/python-updates
python: refine packaging and split more modules into packages
This commit is contained in:
commit
8c297fcc11
14 changed files with 158 additions and 19 deletions
|
@ -12,6 +12,7 @@ $(call Package/python/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PyBasePackage,python-codecs, \
|
$(eval $(call PyBasePackage,python-codecs, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/encodings \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_cn.so \
|
/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_hk.so \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_iso2022.so \
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_codecs_iso2022.so \
|
||||||
|
|
16
lang/python/files/python-package-compiler.mk
Normal file
16
lang/python/files/python-package-compiler.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-compiler
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) compiler module
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-compiler, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/compiler \
|
||||||
|
))
|
18
lang/python/files/python-package-ctypes.mk
Normal file
18
lang/python/files/python-package-ctypes.mk
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#
|
||||||
|
# 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-ctypes
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) ctypes module
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-ctypes, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/ctypes \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ctypes.so \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_ctypes_test.so \
|
||||||
|
))
|
|
@ -5,13 +5,14 @@
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
define Package/python-bsddb
|
define Package/python-db
|
||||||
$(call Package/python/Default)
|
$(call Package/python/Default)
|
||||||
TITLE:=Python $(PYTHON_VERSION) bsddb module
|
TITLE:=Python $(PYTHON_VERSION) db module
|
||||||
DEPENDS:=+python-light +libdb47
|
DEPENDS:=+python-light +libdb47
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PyBasePackage,python-bsddb, \
|
$(eval $(call PyBasePackage,python-db, \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/bsddb \
|
/usr/lib/python$(PYTHON_VERSION)/bsddb \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so \
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_bsddb.so \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/dbm.so \
|
||||||
))
|
))
|
|
@ -1,16 +0,0 @@
|
||||||
#
|
|
||||||
# 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-decimal.mk
Normal file
16
lang/python/files/python-package-decimal.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-decimal
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) decimal module
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-decimal, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/decimal.py \
|
||||||
|
))
|
16
lang/python/files/python-package-distutils.mk
Normal file
16
lang/python/files/python-package-distutils.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-distutils
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) distutils
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-distutils, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/distutils \
|
||||||
|
))
|
16
lang/python/files/python-package-email.mk
Normal file
16
lang/python/files/python-package-email.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-email
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) email module
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-email, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/email \
|
||||||
|
))
|
16
lang/python/files/python-package-logging.mk
Normal file
16
lang/python/files/python-package-logging.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-logging
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) logging module
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-logging, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/logging \
|
||||||
|
))
|
17
lang/python/files/python-package-multiprocessing.mk
Normal file
17
lang/python/files/python-package-multiprocessing.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-multiprocessing
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) multiprocessing
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-multiprocessing, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/multiprocessing \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_multiprocessing.so \
|
||||||
|
))
|
|
@ -12,6 +12,7 @@ $(call Package/python/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PyBasePackage,python-ncurses, \
|
$(eval $(call PyBasePackage,python-ncurses, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/curses \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so \
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses.so \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so \
|
/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_curses_panel.so \
|
||||||
))
|
))
|
||||||
|
|
|
@ -12,6 +12,7 @@ $(call Package/python/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PyBasePackage,python-pydoc, \
|
$(eval $(call PyBasePackage,python-pydoc, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/doctest.py \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/pydoc.py \
|
/usr/lib/python$(PYTHON_VERSION)/pydoc.py \
|
||||||
/usr/lib/python$(PYTHON_VERSION)/pydoc_data \
|
/usr/lib/python$(PYTHON_VERSION)/pydoc_data \
|
||||||
))
|
))
|
||||||
|
|
16
lang/python/files/python-package-unittest.mk
Normal file
16
lang/python/files/python-package-unittest.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-unittest
|
||||||
|
$(call Package/python/Default)
|
||||||
|
TITLE:=Python $(PYTHON_VERSION) unittest module
|
||||||
|
DEPENDS:=+python-light
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call PyBasePackage,python-unittest, \
|
||||||
|
/usr/lib/python$(PYTHON_VERSION)/unittest \
|
||||||
|
))
|
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 \
|
||||||
|
))
|
Loading…
Reference in a new issue