пятница, 12 марта 2010 г.

Install lxml-2.2.6 on OSX 10.3 (Python 2.6.3) in $HOME

libxml2-2.7.6

./configure --prefix=$HOME --with-python=$HOME/Python-2.6.4
make
make install

libxslt-1.1.26:

./configure --prefix=$HOME --with-python=$HOME/Python-2.6.4 --with-libxml-prefix=$HOME
make
make install
cd $HOME/Python-2.6.4/lib/python2.6/site-packages/
ln -s $HOME/lib/python2.6/site-packages/* .


lxml-2.2.6

../python setup.py build_ext --with-xslt-config=$HOME/OpenERP/bin/xslt-config --with-xml2-config=$HOME/OpenERP/bin/xml2-config -I $HOME/OpenERP/include/libxml2

Комментариев нет: