include $(TOPDIR)/rules.mk
+# For PYTHON_VERSION
+include ./files/python-version.mk
+
# This file provides the necsessary host build variables
include ./files/python-host.mk
-# The file included below defines PYTHON_VERSION
+# For PyPackage
include ./files/python-package.mk
PKG_NAME:=python
$(INSTALL_DATA) \
./files/python-package.mk \
./files/python-host.mk \
+ ./files/python-version.mk \
$(STAGING_DIR)/mk/
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
ifneq ($(__python_host_mk_inc),1)
__python_host_mk_inc=1
+# For PYTHON_VERSION
+$(call include_mk, python-version.mk)
+
# Compatibility fallback for older OpenWrt and LEDE versions
ifeq ($(STAGING_DIR_HOSTPKG),)
$(warning STAGING_DIR_HOSTPKG is unset - falling back to $$(STAGING_DIR)/host)
# See /LICENSE for more information.
#
-PYTHON_VERSION:=2.7
-PYTHON_VERSION_MICRO:=12
+$(call include_mk, python-version.mk)
PYTHON_DIR:=$(STAGING_DIR)/usr
PYTHON_BIN_DIR:=$(PYTHON_DIR)/bin
--- /dev/null
+#
+# Copyright (C) 2016 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+PYTHON_VERSION:=2.7
+PYTHON_VERSION_MICRO:=12
+