Freebsd Cython Compile Error

If you had an error like this when compiling the port lang /cython :


building 'Cython.Plex.Scanners' extension
creating build/temp.freebsd-8.0-RELEASE-i386-2.6
creating build/temp.freebsd-8.0-RELEASE-i386-2.6/Cython
creating build/temp.freebsd-8.0-RELEASE-i386-2.6/Cython/Plex
cc -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/local/include/python2.6 -c Cython/Plex/Scanners.c -o build/temp.freebsd-8.0-RELEASE-i386-2.6/Cython/Plex/Scanners.o
In file included from Cython/Plex/Scanners.c:4:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory
error: command 'cc' failed with exit status 1
*** Error code 1

try:


# ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.6/
# ln -s /usr/local/include/pth/pthread.h /usr/local/include/python2.6/

and recompile. It should work.