Re: Nested/Sub Extensions in Python

2011-07-03 Thread H Linux
On Jul 2, 10:43 pm, Carl Banks wrote: > I got and built the package, and it imported smt.bar just fine for me. > > So my advice would be to rename all the modules. My guess is that there is a > conflict for smt and Python is importing some other module or package. Is > there a file called smt.

Re: Nested/Sub Extensions in Python

2011-07-02 Thread H Linux
On Jul 2, 2:28 am, Carl Banks wrote: > On Friday, July 1, 2011 1:02:15 PM UTC-7, H Linux wrote: > > Once I try to nest this, I cannot get the module to load anymore: > > >import smt.bar > > Traceback (most recent call last): > >   File "", line 1,

Re: Nested/Sub Extensions in Python

2011-07-02 Thread H Linux
On Jul 2, 3:46 am, Corey Richardson wrote: > Excerpts from H Linux's message of Fri Jul 01 16:02:15 -0400 2011: > > > Dear all, > > > I am currently fighting with a problem writing a set of Python > > extensions in C. > > If you haven't seen it yet, Cython is a *very* nice tool for writing > C ext

Nested/Sub Extensions in Python

2011-07-01 Thread H Linux
Dear all, I am currently fighting with a problem writing a set of Python extensions in C. I want to structure the whole package (here called smt for sub-module test) into different sub-modules, e.g. according to this layout: smt.foo.func() I can only build a module >import foo >print foo.func(1,