From 696172e4bdbdb2c8867cb324d58f763845b3e39f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20B=C3=BCsch?= Date: Sat, 9 Oct 2010 17:53:06 +0000 Subject: [PATCH] Do not pass -B to python. It might not like it. SVN-Revision: 23370 --- lang/pyqt4/Makefile | 5 +++-- lang/python-sip/Makefile | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lang/pyqt4/Makefile b/lang/pyqt4/Makefile index 25aaef41a..d91684b79 100644 --- a/lang/pyqt4/Makefile +++ b/lang/pyqt4/Makefile @@ -98,9 +98,10 @@ define Build/Configure echo "LIBDIR_OPENGL $(TARGET_LIBDIRS)" >> $(SIPCFGFILE); \ echo "LIBDIR_X11 $(TARGET_LIBDIRS)" >> $(SIPCFGFILE); \ ( \ - export PYTHONPATH="$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR)"; \ cd "$(PKG_BUILD_DIR)"; \ - python -B ./configure.py \ + export PYTHONPATH="$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR)"; \ + export PYTHONDONTWRITEBYTECODE=1; \ + python ./configure.py \ --use-arch="$(ARCH)" \ --qmake="$(STAGING_DIR_HOST)/bin/qmake" \ --qmake-spec="$(STAGING_DIR)/usr/share/mkspecs/linux-openwrt-g++" \ diff --git a/lang/python-sip/Makefile b/lang/python-sip/Makefile index 5f8384988..c80d97e44 100644 --- a/lang/python-sip/Makefile +++ b/lang/python-sip/Makefile @@ -47,7 +47,8 @@ define Build/Configure echo "AR $(TARGET_CROSS)ar cqs" >> $(PYTHON_SIP_CONFIG_TEMPLATE); \ echo "STRIP $(STRIP)" >> $(PYTHON_SIP_CONFIG_TEMPLATE); \ ( cd "$(PKG_BUILD_DIR)"; \ - python -E -B ./configure.py \ + export PYTHONDONTWRITEBYTECODE=1; \ + python -E ./configure.py \ --bindir=$(PKG_INSTALL_DIR)/usr/bin \ --destdir=$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) \ --incdir=$(PKG_INSTALL_DIR)/usr/include \ @@ -89,7 +90,8 @@ endef define Host/Configure ( cd "$(HOST_BUILD_DIR)"; \ - python -E -B ./configure.py \ + export PYTHONDONTWRITEBYTECODE=1; \ + python -E ./configure.py \ --bindir=$(STAGING_DIR_HOST)/usr/bin \ --destdir=$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR) \ --incdir=$(STAGING_DIR_HOST)/usr/include \ -- 2.30.2