Do not pass -B to python. It might not like it.
authorMichael Büsch <mb@bu3sch.de>
Sat, 9 Oct 2010 17:53:06 +0000 (17:53 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sat, 9 Oct 2010 17:53:06 +0000 (17:53 +0000)
SVN-Revision: 23370

lang/pyqt4/Makefile
lang/python-sip/Makefile

index 25aaef4..d91684b 100644 (file)
@@ -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++" \
index 5f83849..c80d97e 100644 (file)
@@ -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 \