From 6abc36e923dc5153959ac64693818782843e66f6 Mon Sep 17 00:00:00 2001 From: Richard Larkin <richard@camiweb.com> Date: Tue, 13 May 2014 15:12:54 +0200 Subject: [PATCH] Added script including rebuild of Python with ssl links --- tools/build-ssllink.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tools/build-ssllink.sh diff --git a/tools/build-ssllink.sh b/tools/build-ssllink.sh new file mode 100755 index 0000000..78e4b57 --- /dev/null +++ b/tools/build-ssllink.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +. $(dirname $0)/environment.sh + +echo "Modifying Python Setup.dist..." +cp $TMPROOT/Python-2.7.1/Modules/Setup.dist $KIVYIOSROOT/src/python_files + +SETUP_DIST=$KIVYIOSROOT/src/python_files/Setup.dist +echo "" >> $SETUP_DIST +echo "# Adding SSL Links" >> $SETUP_DIST +echo "# Socket module helper for sockets" >> $SETUP_DIST +echo "_socket socketmodule.c" >> $SETUP_DIST +echo "SSL=/usr" >> $SETUP_DIST +echo "_ssl _ssl.c \\" >> $SETUP_DIST +echo " -DUSE_SSL -I\$(SSL)/include -I\$(SSL)/include/openssl \\" >> $SETUP_DIST +echo " -L\$(SSL)/lib -lssl -lcrypto" >> $SETUP_DIST + +echo "Cleaning and rebuilding Python to inlcude SSL links..." +sh $KIVYIOSROOT/tools/clean_python.sh +sh $KIVYIOSROOT/tools/build-python.sh