|
@@ -14,12 +14,12 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
|
14
|
14
|
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
|
15
|
15
|
|
16
|
16
|
PKG_NAME:=python3
|
17
|
|
-PKG_RELEASE:=3
|
|
17
|
+PKG_RELEASE:=1
|
18
|
18
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
19
|
19
|
|
20
|
20
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
21
|
21
|
PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION)
|
22
|
|
-PKG_MD5SUM:=7d092d1bba6e17f0d9bd21b49e441dd5
|
|
22
|
+PKG_MD5SUM:=d149d2812f10cbe04c042232e7964171
|
23
|
23
|
|
24
|
24
|
PKG_LICENSE:=PSF
|
25
|
25
|
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
|
|
@@ -31,7 +31,7 @@ HOST_BUILD_PARALLEL:=1
|
31
|
31
|
PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
|
32
|
32
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)
|
33
|
33
|
|
34
|
|
-PKG_BUILD_DEPENDS:=python3/host
|
|
34
|
+PKG_BUILD_DEPENDS:=libbz2/host expat/host python3/host
|
35
|
35
|
|
36
|
36
|
include $(INCLUDE_DIR)/host-build.mk
|
37
|
37
|
include $(INCLUDE_DIR)/package.mk
|
|
@@ -77,15 +77,9 @@ define Package/python3-light/description
|
77
|
77
|
into separate packages.
|
78
|
78
|
endef
|
79
|
79
|
|
80
|
|
-# Define newline here, since it's not defined in OpenWRT
|
81
|
|
-define newline
|
82
|
|
-
|
83
|
|
-
|
84
|
|
-endef
|
85
|
|
-
|
86
|
80
|
PYTHON3_LIB_FILES_DEL:=
|
87
|
81
|
PYTHON3_PACKAGES:=
|
88
|
|
-PYTHON3_SO_SUFFIX:=cpython-34.so
|
|
82
|
+PYTHON3_SO_SUFFIX:=cpython-$(PYTHON3_VERSION_MAJOR)$(PYTHON3_VERSION_MINOR).so
|
89
|
83
|
define Py3BasePackage
|
90
|
84
|
PYTHON3_PACKAGES+=$(1)
|
91
|
85
|
PYTHON3_LIB_FILES_DEL+=$(2)
|
|
@@ -109,6 +103,7 @@ endef
|
109
|
103
|
MAKE_FLAGS+=\
|
110
|
104
|
CROSS_COMPILE=yes \
|
111
|
105
|
LD="$(TARGET_CC)" \
|
|
106
|
+ FREEZE_IMPORTLIB=_freeze_importlib \
|
112
|
107
|
PGEN=pgen3
|
113
|
108
|
|
114
|
109
|
ifeq ($(ARCH),i386)
|
|
@@ -224,6 +219,7 @@ HOST_CONFIGURE_ARGS+= \
|
224
|
219
|
--without-pymalloc \
|
225
|
220
|
--with-threads \
|
226
|
221
|
--prefix=$(STAGING_DIR_HOST) \
|
|
222
|
+ --with-system-expat=$(STAGING_DIR_HOST) \
|
227
|
223
|
--with-ensurepip=upgrade \
|
228
|
224
|
CONFIG_SITE= \
|
229
|
225
|
CFLAGS="$(HOST_CFLAGS)"
|
|
@@ -237,6 +233,7 @@ define Host/Install
|
237
|
233
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
|
238
|
234
|
$(MAKE) -C $(HOST_BUILD_DIR) install
|
239
|
235
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/Parser/pgen $(STAGING_DIR_HOST)/bin/pgen3
|
|
236
|
+ $(INSTALL_BIN) $(HOST_BUILD_DIR)/Programs/_freeze_importlib $(STAGING_DIR_HOST)/bin/_freeze_importlib
|
240
|
237
|
endef
|
241
|
238
|
|
242
|
239
|
$(eval $(call HostBuild))
|