Andi Vajda wrote:
> from _jcc import initVM
I believe that in the statement "from X import Y", X and Y are
essentially strings, not runtime-evaluated values. So what would
work would be
from jcc._jcc import initVM
or
initVM = _jcc.initVM
Bill
Andi Vajda wrote:
>
> On Thu, 8 Dec 2011, Bill Janssen wrote:
>
> > Andi Vajda wrote:
> >
> >> It seems that adding, before if __name__ == '__main__':
> >>from jcc import _jcc
> >>
> >> works just fine on 2.7 and 2.6 as well.
> >
> > Yes, this works on 2.5, as well.
> >
> >> Speaking of wh
Andi Vajda wrote:
>
> On Thu, 8 Dec 2011, Bill Janssen wrote:
>
> > Andi Vajda wrote:
> >
> >>> Yes, I could see that. setuptools plays all kinds of games to achieve
> >>> its ends, some of them broken. Thank heaven for distutils2/packaging.
> >>
> >> What ? another 'dist' thing ?
> >> So th
Andi Vajda wrote:
> It seems that adding, before if __name__ == '__main__':
>from jcc import _jcc
>
> works just fine on 2.7 and 2.6 as well.
Yes, this works on 2.5, as well.
> Speaking of which, I don't see when __name__ would be == '__main__'. I tried
> various combinations with pdb and
Andi Vajda wrote:
> > Yes, I could see that. setuptools plays all kinds of games to achieve
> > its ends, some of them broken. Thank heaven for distutils2/packaging.
>
> What ? another 'dist' thing ?
> So that leaves us with distutils 1, 2, setuptools and distribute. My informa=
> tion may be