From 9dedd64af4079e115fc01f8bc3dfca8f0f37cd07 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 21 Jun 2013 16:13:31 +0200 Subject: [PATCH] Python: add hack to break build if build goes wrong Signed-off-by: Stephan Raue --- packages/lang/Python/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/lang/Python/install b/packages/lang/Python/install index 04295a23a6..d2382316db 100755 --- a/packages/lang/Python/install +++ b/packages/lang/Python/install @@ -39,6 +39,11 @@ mkdir -p $PYTHON_LIB_DIR/config mkdir -p $PYTHON_LIB_DIR/lib-dynload cp $PKG_BUILD/.objdir-target/build/lib*/*.so $PYTHON_LIB_DIR/lib-dynload +# Todo: sometimes Python dont build '_socket.so' for some reasons and continues without failing, +# let it fail in this way, to be sure '_socket.so' will be installed- a rebuild of Python fixes +# the issue in most cases: + cp $PKG_BUILD/.objdir-target/build/lib*/_socket.so $PYTHON_LIB_DIR/lib-dynload + cp -R $PKG_BUILD/.objdir-target/Lib/* $PYTHON_LIB_DIR # For future 3rd-parties Python modules