Skip to content

Commit b475949

Browse files
author
Ryan Northey
committed
Added pyopenssl recipe
1 parent ffa59a9 commit b475949

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

recipes/pyopenssl/recipe.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
VERSION_pyopenssl=0.13
4+
URL_pyopenssl=http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$VERSION_pyopenssl.tar.gz
5+
DEPS_pyopenssl=(openssl hostpython python)
6+
MD5_pyopenssl= 767bca18a71178ca353dff9e10941929
7+
BUILD_pyopenssl=$BUILD_PATH/pyopenssl/$(get_directory $URL_pyopenssl)
8+
RECIPE_pyopenssl=$RECIPES_PATH/pyopenssl
9+
10+
function prebuild_pyopenssl() {
11+
true
12+
}
13+
14+
function build_pyopenssl() {
15+
16+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/pyOpenSSL" ]; then
17+
return
18+
fi
19+
20+
cd $BUILD_pyopenssl
21+
22+
push_arm
23+
24+
export CC="$CC -I$BUILD_openssl/include"
25+
export LDFLAGS="$LDFLAGS -L$LIBS_PATH -L$BUILD_openssl"
26+
27+
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v
28+
try find build/lib.* -name "*.o" -exec $STRIP {} \;
29+
30+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
31+
32+
try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/OpenSSL/test
33+
34+
pop_arm
35+
}
36+
37+
function postbuild_pyopenssl() {
38+
true
39+
}

0 commit comments

Comments
 (0)