Just have ['.']
> ext_modules=[
> Extension("fish.compiled",
> sources = ["fish/compiled.pyx"],
> include_dirs=INCLUDES
> ),
> ]
>
> setup(
> name = "fish",
> version = "0.0.1",
> cmdclass = {"build_ext": build_ext},
> ext_modules = ext_modules,
> )
>
>
>
> Now I do, from the shell:
> sage setup.py install
>
> This puts a file "compiled.so" into the site-packages/fish/ directory.
>
> Then, from the Sage prompt:
>
> sage: from fish.compiled import testfun
>
> which results in an
>
> ImportError: No module named compiled
>
> Finally, if I replace "fish.compiled" by "compiled" in setup.py, then "from
> compiled import testfun" works just fine...
>
> What am I missing?
What directory are you running this from?
- Robert