From 948dcbd66750a290254188d287b77acd494c0574 Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 22 Aug 2013 08:49:02 -0500 Subject: [PATCH] created sqlalchemy recipe for compiling its C extension in ARM environment. --- recipes/sqlalchemy/recipe.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes/sqlalchemy/recipe.sh diff --git a/recipes/sqlalchemy/recipe.sh b/recipes/sqlalchemy/recipe.sh new file mode 100644 index 0000000000..1ad1bdfa44 --- /dev/null +++ b/recipes/sqlalchemy/recipe.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +VERSION_sqlalchemy=0.8.2 +DEPS_sqlalchemy=(python) +URL_sqlalchemy=https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-${VERSION_sqlalchemy}.tar.gz +MD5_sqlalchemy=5a33fb43dea93468dbb2a6562ee80b54 +BUILD_sqlalchemy=$BUILD_PATH/sqlalchemy/$(get_directory "${URL_sqlalchemy}") +RECIPE_sqlalchemy=$RECIPES_PATH/sqlalchemy + +function prebuild_sqlalchemy() { + true +} + + +function build_sqlalchemy() { + if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/sqlalchemy" ]; then + return + fi + + cd $BUILD_sqlalchemy + + push_arm + + try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 + + pop_arm +} + + +function postbuild_sqlalchemy() { + true +} \ No newline at end of file