On Tuesday 08 September 2009 13:41:40 Sanne Korzec wrote:
> Thanks for the implementation, can't wait to try. But again I'm running
>  into some problems.
> 
> I installed the c stl with configure --prefix='/home/me/libcalg'
> 
> Changed the setup.py:
> 
> #!/usr/bin/env python
> # python setup.py build_ext --inplace
> from distutils.core import setup
> from distutils.extension import Extension
> from Cython.Distutils import build_ext
> 
> ext = Extension(
>     "cy_hash",
>     ["cy_hash.pyx"],
>     language="c",
>     include_dirs=['/home/me/libcalg/include/libcalg-1.0'],
>     library_dirs=['/home/me/libcalg/lib'],
>     libraries=['calg'],                       #also tried 'libcalg/calg'
>     cmdclass = {'build_ext': build_ext}
>     )
> 
> setup(
>     cmdclass={'build_ext': build_ext},
>     ext_modules=[ext]
>     )
> 
> When I run python setup.py build_ext --inplace
> 
> I get a warning: /usr/lib/python2.5/distutils/extension.py:133:
>  UserWarning: Unknown Extension options: 'cmdclass'
> warnings.warn(msg)
> 
> When I run python -c 'import cy_hash as cc; cc.test()'
> 
> I get: ImportError: libcalg.so.0: cannot open shared object file: No such
> file or directory
you probably need to add the /home/me/libcalg/lib directory to your 
LD_LIBRARY_PATH environment variable.

cheers,
sebastien.
-- 
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to