|
@ -12,11 +12,11 @@ include ./files/python-package.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=python |
|
|
PKG_NAME:=python |
|
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) |
|
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) |
|
|
PKG_RELEASE:=6 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz |
|
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz |
|
|
PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION) |
|
|
|
|
|
PKG_MD5SUM:=c685ef0b8e9f27b5e3db5db12b268ac6 |
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION) |
|
|
|
|
|
PKG_MD5SUM:=1dbcc848b4cd8399a8199d000f9f823c |
|
|
|
|
|
|
|
|
PKG_LICENSE:=PSF |
|
|
PKG_LICENSE:=PSF |
|
|
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE |
|
|
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE |
|
@ -39,7 +39,7 @@ define Package/python/Default |
|
|
SECTION:=lang |
|
|
SECTION:=lang |
|
|
CATEGORY:=Languages |
|
|
CATEGORY:=Languages |
|
|
TITLE:=Python $(PYTHON_VERSION) programming language |
|
|
TITLE:=Python $(PYTHON_VERSION) programming language |
|
|
URL:=http://www.python.org/ |
|
|
|
|
|
|
|
|
URL:=https://www.python.org/ |
|
|
MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com> |
|
|
MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com> |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
@ -75,16 +75,14 @@ define Package/python-light/description |
|
|
into separate packages. |
|
|
into separate packages. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
# Define newline here, since it's not defined in OpenWRT
|
|
|
|
|
|
define newline |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
PYTHON_LIB_FILES_DEL:= |
|
|
PYTHON_LIB_FILES_DEL:= |
|
|
PYTHON_PACKAGES:= |
|
|
PYTHON_PACKAGES:= |
|
|
|
|
|
PYTHON_PACKAGES_DEPENDS:= |
|
|
define PyBasePackage |
|
|
define PyBasePackage |
|
|
PYTHON_PACKAGES+=$(1) |
|
|
PYTHON_PACKAGES+=$(1) |
|
|
|
|
|
ifeq ($(3),) |
|
|
|
|
|
PYTHON_PACKAGES_DEPENDS+=$(1) |
|
|
|
|
|
endif |
|
|
PYTHON_LIB_FILES_DEL+=$(2) |
|
|
PYTHON_LIB_FILES_DEL+=$(2) |
|
|
define PyPackage/$(1)/filespec |
|
|
define PyPackage/$(1)/filespec |
|
|
$(subst $(space),$(newline),$(foreach lib_file,$(2),+|$(lib_file))) |
|
|
$(subst $(space),$(newline),$(foreach lib_file,$(2),+|$(lib_file))) |
|
@ -95,7 +93,7 @@ include ./files/python-package-*.mk |
|
|
|
|
|
|
|
|
define Package/python |
|
|
define Package/python |
|
|
$(call Package/python/Default) |
|
|
$(call Package/python/Default) |
|
|
DEPENDS:=+python-light $(foreach package,$(PYTHON_PACKAGES),+$(package)) |
|
|
|
|
|
|
|
|
DEPENDS:=+python-light $(foreach package,$(PYTHON_PACKAGES_DEPENDS),+$(package)) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/python/description |
|
|
define Package/python/description |
|
@ -146,13 +144,13 @@ define Build/InstallDev |
|
|
$(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
|
|
|
$(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
|
|
|
$(1)/usr/include/ |
|
|
$(1)/usr/include/ |
|
|
$(CP) \
|
|
|
$(CP) \
|
|
|
$(STAGING_DIR_HOST)/lib/python$(PYTHON_VERSION) \
|
|
|
|
|
|
|
|
|
$(STAGING_DIR_HOST)/usr/lib/python$(PYTHON_VERSION) \
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \
|
|
|
$(1)/usr/lib/ |
|
|
$(1)/usr/lib/ |
|
|
$(CP) \
|
|
|
$(CP) \
|
|
|
$(STAGING_DIR_HOST)/lib/pkgconfig/python.pc \
|
|
|
|
|
|
$(STAGING_DIR_HOST)/lib/pkgconfig/python2.pc \
|
|
|
|
|
|
$(STAGING_DIR_HOST)/lib/pkgconfig/python-$(PYTHON_VERSION).pc \
|
|
|
|
|
|
|
|
|
$(STAGING_DIR_HOST)/usr/lib/pkgconfig/python.pc \
|
|
|
|
|
|
$(STAGING_DIR_HOST)/usr/lib/pkgconfig/python2.pc \
|
|
|
|
|
|
$(STAGING_DIR_HOST)/usr/lib/pkgconfig/python-$(PYTHON_VERSION).pc \
|
|
|
$(1)/usr/lib/pkgconfig |
|
|
$(1)/usr/lib/pkgconfig |
|
|
$(CP) \
|
|
|
$(CP) \
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config \
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config \
|
|
@ -190,12 +188,10 @@ endef |
|
|
|
|
|
|
|
|
define PyPackage/python-light/filespec |
|
|
define PyPackage/python-light/filespec |
|
|
+|/usr/lib/python$(PYTHON_VERSION) |
|
|
+|/usr/lib/python$(PYTHON_VERSION) |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/config |
|
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/distutils/cygwinccompiler.py |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/distutils/cygwinccompiler.py |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/distutils/command/wininst* |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/distutils/command/wininst* |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/ensurepip |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/ensurepip |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/idlelib |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/idlelib |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib2to3 |
|
|
|
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-tk |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-tk |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_testcapi.so |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_testcapi.so |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pdb.doc |
|
|
-|/usr/lib/python$(PYTHON_VERSION)/pdb.doc |
|
@ -225,8 +221,8 @@ HOST_CONFIGURE_ARGS+= \ |
|
|
--without-cxx-main \
|
|
|
--without-cxx-main \
|
|
|
--without-pymalloc \
|
|
|
--without-pymalloc \
|
|
|
--with-threads \
|
|
|
--with-threads \
|
|
|
|
|
|
--prefix=$(STAGING_DIR_HOST)/usr \
|
|
|
--with-system-expat=$(STAGING_DIR_HOST) \
|
|
|
--with-system-expat=$(STAGING_DIR_HOST) \
|
|
|
--prefix=$(STAGING_DIR_HOST) \
|
|
|
|
|
|
--with-ensurepip=upgrade \
|
|
|
--with-ensurepip=upgrade \
|
|
|
CONFIG_SITE= \
|
|
|
CONFIG_SITE= \
|
|
|
CFLAGS="$(HOST_CFLAGS)" |
|
|
CFLAGS="$(HOST_CFLAGS)" |
|
|