summaryrefslogtreecommitdiff
path: root/lang/python/files
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2015-12-07 16:09:31 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2015-12-11 16:07:22 +0200
commita8602a7ccbde983412b5f0f27961ff2ab9155194 (patch)
tree8f92909065be2823f67c8f2171acd0777e2c06d1 /lang/python/files
parentc55641331e892b8bf4a7a8ae4883a85c713704af (diff)
python: upgrade to version 2.7.11
And split python-dev and python-lib2to3 packages. Seems for python3 this was done, so we'll sync here. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python/files')
-rw-r--r--lang/python/files/python-package-dev.mk27
-rw-r--r--lang/python/files/python-package-lib2to3.mk18
-rw-r--r--lang/python/files/python-package.mk2
3 files changed, 46 insertions, 1 deletions
diff --git a/lang/python/files/python-package-dev.mk b/lang/python/files/python-package-dev.mk
new file mode 100644
index 000000000..2f807b283
--- /dev/null
+++ b/lang/python/files/python-package-dev.mk
@@ -0,0 +1,27 @@
+#
+# 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-dev
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) development files
+ DEPENDS:=+python
+endef
+
+define PyPackage/python-dev/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/python*config $(1)/usr/bin
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib
+endef
+
+$(eval $(call PyBasePackage,python-dev, \
+ /usr/lib/python$(PYTHON_VERSION)/config \
+ /usr/include/python$(PYTHON_VERSION) \
+ /usr/lib/pkgconfig \
+ , \
+ DO_NOT_ADD_TO_PACKAGE_DEPENDS \
+))
+
diff --git a/lang/python/files/python-package-lib2to3.mk b/lang/python/files/python-package-lib2to3.mk
new file mode 100644
index 000000000..5d6942d65
--- /dev/null
+++ b/lang/python/files/python-package-lib2to3.mk
@@ -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-lib2to3
+$(call Package/python/Default)
+ TITLE:=Python $(PYTHON_VERSION) lib2to3 module
+ DEPENDS:=+python
+endef
+
+$(eval $(call PyBasePackage,python-lib2to3, \
+ /usr/lib/python$(PYTHON_VERSION)/lib2to3 \
+ , \
+ DO_NOT_ADD_TO_PACKAGE_DEPENDS \
+))
diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk
index 715134d2d..058c232f0 100644
--- a/lang/python/files/python-package.mk
+++ b/lang/python/files/python-package.mk
@@ -6,7 +6,7 @@
#
PYTHON_VERSION:=2.7
-PYTHON_VERSION_MICRO:=10
+PYTHON_VERSION_MICRO:=11
PYTHON_DIR:=$(STAGING_DIR)/usr
PYTHON_BIN_DIR:=$(PYTHON_DIR)/bin