# ------------------------------- HOST PYTHON3------------------------------
HOST_PYTHON3_MAKE_OPTS = \
+ CFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags"
# Make python believe we don't have 'hg', so that it doesn't try to
--without-ensurepip \
--without-cxx-main \
--with-expat=system \
- --enable-openssl \
+ --with-openssl=$(HOSTPREFIX)/usr \
--enable-unicodedata \
--disable-bzip2 \
--disable-codecs-cjk \
--disable-tk \
--disable-uuid
-$(D)/host_python3: $(D)/host_zlib $(D)/host_libffi $(D)/host_expat $(ARCHIVE)/Python-$(PYTHON3_VER).tar.xz | $(HOSTPREFIX)
+$(D)/host_python3: $(D)/host_zlib $(D)/host_libffi $(D)/host_expat $(D)/host_openssl $(ARCHIVE)/Python-$(PYTHON3_VER).tar.xz | $(HOSTPREFIX)
$(START_BUILD)
$(REMOVE)/Python-$(PYTHON3_VER)
$(UNTAR)/Python-$(PYTHON3_VER).tar.xz
$(D)/host_python3_pip: $(ARCHIVE)/get-pip.py $(D)/host_python3 | $(TARGETPEFIX)
$(START_BUILD)
@echo "Installing lastest pip."
- $(HOSTPREFIX)/usr/bin/python3 $(ARCHIVE)/get-pip.py
+ @set -e; \
+ if ! $(HOSTPREFIX)/usr/bin/python3 $(ARCHIVE)/get-pip.py; then \
+ echo "Failed to install pip."; \
+ exit 1; \
+ fi
$(TOUCH)
MY_PY_PACKAGES = $(BUILD_TMP)/my_py_packages