Dear Supporters,

I am about to create a sage package pGroupcohomology comprising
several (extension) modules mtx, resolution, ...

>From various Python and Cython manual pages, I thought that I ought to
write the following in my setup.py:

  packages=["pGroupCohomology"],
  ext_package="pGroupCohomology", # Here I am not sure: Necessary?
  ext_modules=[
    Extension("pGroupCohomology.mtx", ...),
    Extension("pGroupCohomology.resolution",...)], ...

After installation, the following works:
 sage: from pGroupCohomolog.mtx import MTX
 sage: M=MTX('some data')

I can do computations with M. But M does not know where it belongs to:
 sage: M.__class__
 <mtx.MTX class instance at ...>

I am puzzled by the fact that it says <mtx.MTX> and not
<pGroupCohomology.mtx.MTX>, which also makes pickling fail.

Can you tell me why the above setup does not yield the desired package
structure?

Best regards,
   Simon

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

Reply via email to