Added script including rebuild of Python with ssl links
This commit is contained in:
parent
0723fc81ed
commit
6abc36e923
1 changed files with 20 additions and 0 deletions
20
tools/build-ssllink.sh
Executable file
20
tools/build-ssllink.sh
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue