It seems that the class builds right only from a folder *without* an __init__.py file. Previously I was trying to build it from a package folder and removing the __init__.py made the class work again. Strange. I found that I can make the resulting foo.pyd work within a Python package afterwards by moving the .pyd file to the desired package folder (wich contains an __init__.py file). Now I can "from foo_pck.foo import Foo" and the class still works.
2009/5/16 Stefan Behnel <[email protected]> > > > You must keep both in a "foo" package directory that has an __init__.py > file (to mark it as package). That's the way Python packages work. > > Stefan > > _______________________________________________ > Cython-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/cython-dev >
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
