From 1076de094915810c48c4876b25e1404669ecdcd7 Mon Sep 17 00:00:00 2001 From: sccolbert Date: Mon, 12 Oct 2009 19:12:00 +0200 Subject: [PATCH] added a bash script for build to holdover until a setup.py solution --- scikits/image/opencv/INSTALL.txt | 11 +++++++++++ scikits/image/opencv/build.sh | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 scikits/image/opencv/INSTALL.txt create mode 100755 scikits/image/opencv/build.sh diff --git a/scikits/image/opencv/INSTALL.txt b/scikits/image/opencv/INSTALL.txt new file mode 100644 index 00000000..f142522e --- /dev/null +++ b/scikits/image/opencv/INSTALL.txt @@ -0,0 +1,11 @@ +Until we come to a solution for a setup.py, execute the included shell script build.sh + +scikit/image/opencv$./build.sh +scikit/image/opencv$cd tests +scikit/image/opencv/tests$python test_opencv_cv.py + +!* make sure the scikits directory is on the python path *! + + + + diff --git a/scikits/image/opencv/build.sh b/scikits/image/opencv/build.sh new file mode 100755 index 00000000..525692a9 --- /dev/null +++ b/scikits/image/opencv/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cython opencv_backend.pyx && cython opencv_cv.pyx && gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python2.6 -o opencv_backend.so opencv_backend.c && gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python2.6 -o opencv_cv.so opencv_cv.c