On Mon, May 12, 2008 at 9:45 AM, Nathan Dunfield <[EMAIL PROTECTED]> wrote:
>
>  I'm working on an Cython extension module for Sage, but source code
>  introspection isn't working for me.
>
>  The extension is built from a single *.pyx file via the following
>  setup.py file:
>
>  -----setup.py-----
>  from distutils.core import setup
>  from distutils.extension import Extension
>  from Cython.Distutils import build_ext
>
>  introtest = Extension(name = "introtest", sources = ["introtest.pyx"])
>  setup( name = "introtest", ext_modules = [introtest],  cmdclass =
>  {'build_ext': build_ext})
>  ------------------
>
>  and then installed with "sage -python setup.py install".  However,
>  when I try
>
>  sage: introtest.intro??
>  Error getting source: arg is not a module, class, method, function,
>  traceback, frame, or code object
>  [..snip..]
>  Docstring [source file open failed]:
>

When you run the build command *precisely* what Cython and GCC
commands are executed?  I.e., touch the .pyx file, rebuild it
and paste the build log into an email.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to