From: Michael S. <mic...@ph...> - 2003-09-19 19:36:16
|
Dear Mr. Vignaux, On 19.09.03, vignaux wrote: > I have downloaded it but I am having > trouble installing. I used the second option > > > python setup.py install > > as it was implied that one did not need > > >the kpathsea header and library files for this > > It does appear to need kpathsea and library files. I am using XDarwin on > Mac OS X 10.2.x. Python version 2.3. This has latex (in the form of > TeXshop). Both is true. Unfortunately, at the moment setup.py uses the c-extension kpathsea as the default. Then you need indeed some header files and the kpathsea library. In the teTeX distribution, they can be found in /<...>/teTeX/include /<...>/teTeX/lib Whether they are included in TeXShop is unclear to me. If they the files are present, you should create a file "setup.cfg" in the directory where setup.py resides, with the following content: [build_ext] include_dirs=<Your-Tex-Path>/include library_dirs=<Your-Tex-Path>/lib If this does not work, however, there is the fallback-solution that uses the usual "kpsewhich" command which should be part of your TeX-distribution. This tells PyX where the necessary TeX-files are. In this case setup.py should not try to build the kpathsea extension. Please remove the entry Extension("pyx.pykpathsea._pykpathsea", sources=["pyx/pykpathsea/pykpathsea.c"], libraries=["kpathsea"]) in setup.py. Then, the command python setup.py install should work fine. Best greetings from Germany, Michael -- "A mathematician is a device for turning coffee into theorems" Paul Erdös. |