just a drop into the sea -- suggested patch to make use of distutils while deducing the paths, so if python-dbg is provided as the interpreter to configure , you get those paths correctly assigned
On Wed, 14 Apr 2010, Soeren Sonnenburg wrote: > that seems very hard to do - it is as difficult as getting python > support for 2.4 - 2.6 in the packages. :( > one basically would need to build libshogun{,ui} first and then using > this libshogun{,ui} build the other interfaces with various settings. > quite a bit of effort I currently don't have time for... -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555]
From e3fe3d72dd3f2d1d6de5c138d1d578e8f9219a17 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko <deb...@onerussian.com> Date: Wed, 14 Apr 2010 12:59:50 -0400 Subject: [PATCH] use distutils to deduce include and library (win32) paths --- src/configure | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configure b/src/configure index 4943749..f22d5ee 100755 --- a/src/configure +++ b/src/configure @@ -3348,12 +3348,12 @@ test_python() PRE_LIB_SWIG_PYTHON_MODULAR=_ EXT_IF_SWIG_PYTHON_MODULAR='.py' test -n "$_pyinclude" && _pyinclude="-I$_pyinclude" - test -n "$_pyinclude" || _pyinclude=`$PYTHON -c "import numpy; import sys; print '-I'+sys.prefix+'/include/python'+sys.version[0:3]+' -I'+numpy.get_include()"` + test -n "$_pyinclude" || _pyinclude=`$PYTHON -c "from distutils.sysconfig import get_python_inc; import numpy; print '-I%s -I%s' % (get_python_inc(), numpy.get_include())"` _pylibpath="" #test -n "$_pylibpath" && _pylibpath="-I$_pylibpath" if win32 then - _pylibpath=`$PYTHON -c "import sys; print '-L'+sys.exec_prefix+'/lib/python'+sys.version[0:3]+'/config'"` + _pylibpath=`$PYTHON -c 'from distutils.sysconfig import get_config_vars; print "-L%(LIBPL)s" % get_config_vars()'` fi test -n "$_pylibs" || _pylibs=`$PYTHON -c "import sys; print 'python'+sys.version[0:3]"` INCLUDES_PYTHON="$_pyinclude $INCLUDES_PYTHON" -- 1.7.0.3
signature.asc
Description: Digital signature