tasn pushed a commit to branch master.

commit e11832436bf7d2411c7fe1852869e0fffdd518bd
Author: Michael Lauer <[email protected]>
Date:   Sun Jan 4 19:14:43 2009 +0000

    fix build script so that it actually builds
    
    
    SVN revision: 38452
---
 build.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 8317b2c..6805b24 100755
--- a/build.sh
+++ b/build.sh
@@ -1,12 +1,20 @@
 #!/bin/sh
+
 PREFIX="$HOME/usr"
+PYX_FILES="elementary/elementary.c_elementary.pyx"
 
 for arg in $@; do
     case $arg in
+        --force)
+            touch $PYX_FILES
+            ;;
         *)
             PREFIX="$arg"
             ;;
     esac
 done
 
-python setup.py install --prefix="$PREFIX"
+PYINCDIR=`python -c "import distutils.sysconfig; print 
distutils.sysconfig.get_python_inc()" | cut -d/ -f3-`
+INCDIR="$PREFIX/$PYINCDIR"
+
+python setup.py build_ext --include-dirs="$INCDIR" develop --prefix="$PREFIX" 
install_headers --install-dir="$INCDIR"

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

Reply via email to