Re: Statically linked extension and relative import

2009-05-07 Thread David Cournapeau
On Thu, May 7, 2009 at 8:34 PM, Andrew MacIntyre wrote: > David Cournapeau wrote: >> >> Hi, >> >> I am trying to build a 3rd party extension and link it statically to >> python. I managed to get things working by customizing Setup.local in >> python source tree, but I have a problem for imports of

Re: Statically linked extension and relative import

2009-05-07 Thread Andrew MacIntyre
David Cournapeau wrote: Hi, I am trying to build a 3rd party extension and link it statically to python. I managed to get things working by customizing Setup.local in python source tree, but I have a problem for imports of the 'foo.bar' form. For example, let's say the 3rd party module is laid o

Statically linked extension and relative import

2009-05-07 Thread David Cournapeau
Hi, I am trying to build a 3rd party extension and link it statically to python. I managed to get things working by customizing Setup.local in python source tree, but I have a problem for imports of the 'foo.bar' form. For example, let's say the 3rd party module is laid out as follows: foo/__init