On May 1, 2009, at 10:15 AM, Simon King wrote:
> Dear Cython-Dev,
>
> currently I try to create a Cython package comprising couple of
> extension
> modules for usage in Sage. It somehow works, but apparently the
> extension
> classes in the modules don't know where they belong to.
>
> In my setup.py, I have
> setup(
> name = "pGroupCohomology",
> version = "1.0",
> author = "Simon A. King",
> author_email = "[email protected]",
> url = "http://users.minet.uni-jena.de/~king/cohomology/",
> description = "Modular Cohomology Rings of Groups of Prime Power
> Order",
> packages=["pGroupCohomology"],
> package_dir={"pGroupCohomology":"CohoSrc"},
> ext_package="pGroupCohomology",
> ext_modules=[
> Extension("mtx",
> sources = ["CohoSrc/mtx.pyx",
> ...],
> ...),
> Extension(...)]
> cmdclass = {'build_ext': build_ext}
> )
>
> I learned from some documentation that providing the optional argument
> 'ext_package' should make the Extensions modules in that package,
> so, it should
> be Extension("mtx",...), not Extension("pGroupCohomology.mtx",...).
Hmm... could you point me to that bit of documentation? I think it's
wrong (or at least not implemented as explained), we do Extension
("package.module",...) all the time in sage and that seems to mix
well with pickling.
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev