2005/06/10

Trac, clearsilver and Python 2.4.1

Trac is an excellent web-based issue tracking system. It depends on clearsilver.

Clearsilver 0.9.14 doesn't like to configure with Python 2.4, due to changes in the internals of Python's site module.

The fix is easy enough, but for some reason it's hard to find via Google. (You can find it by searching for Python 2.4 within clearsilver's Yahoo Groups discussion forum.) Here's a context diff for clearsilver's configure script, showing the fix that worked for me. Apologies for the long lines...


*** configure Tue May 24 16:28:58 2005
--- configure.orig Tue May 24 16:24:45 2005
***************
*** 3084,3091 ****
PYTHON=$python_bin
PYTHON_INC="-I$python_inc"
PYTHON_LIB=$python_lib
! PYTHON_SITE=`$python_bin -c "import sys, os; print os.path.join(sys.prefix, 'lib', 'python%s' % sys.version[:3], 'site-packages')"`
! # PYTHON_SITE=`$python_bin -c "import site; print site.sitedirs[0]"`
BUILD_WRAPPERS="$BUILD_WRAPPERS python"
fi
fi
--- 3084,3090 ----
PYTHON=$python_bin
PYTHON_INC="-I$python_inc"
PYTHON_LIB=$python_lib
! PYTHON_SITE=`$python_bin -c "import site; print site.sitedirs[0]"`
BUILD_WRAPPERS="$BUILD_WRAPPERS python"
fi
fi


Here is the relevant discussion thread.

No comments: