Hi, I have a Python package, 'foo' that I can install with distutils,
into Sage's site-packages directory. It contains a Cython file,
'bar.pyx'. Now, if in the setup.py file, I have
Extension('bar', ...)
then everything works fine, except that 'bar.so' gets put in
site-packages, rather than site-packages/foo. Everything works, and
the python files in site-packages/foo can do "import bar".
However, if I have
Extension('foo.bar', ...)
in setup.py, then 'bar.so' gets put in site-packages/foo, which is
what I want, but now nothing can import it... I was wondering whether
LD_LIBRARY_PATH or something needs to be set?
I'd like to be able to distribute my package, but I want everything
contained in site-packages/foo .... Thanks,
Emil
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org