[Python-Dev] Problem with module loading on multi-arch?

2006-03-20 Thread Jim Jewett
x86_64 is multiarch. That means, we allow both i386 and x86_64 binaries to coexits. Is the proposal that python should not support this? That would be unfortunate. The problem is that at the moment, a package has to live all in one place. This doesn't mean you can't have both types of

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-18 Thread Martin v. Löwis
Neal Becker wrote: x86_64 is multiarch. That means, we allow both i386 and x86_64 binaries to coexits. Is the proposal that python should not support this? That would be unfortunate. No. You should install the Python library to the architecture-specific directory (/usr/lib64/python2.3 for

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-17 Thread Martin v. Löwis
Neal Becker wrote: 1. Does it make sense to have both site-dep/app/subpackage and site-indep/app/subpackage ? My answer: definitely yes. We already agree that we should have both site-dep for binary code and site-indep for python code, so there is no way to avoid this. I'm not sure

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-17 Thread Thomas Wouters
On 3/17/06, Neal Becker [EMAIL PROTECTED] wrote: OK, let's talk about it.1. Does it make sense to have bothsite-dep/app/subpackage andsite-indep/app/subpackage?My answer: definitely yes. Nope. It would make sense to have .py files in site-indep and .pyc, .pyo and .so files in site-dep, but Python

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-17 Thread Neal Becker
Martin v. Löwis wrote: Neal Becker wrote: 1. Does it make sense to have both site-dep/app/subpackage and site-indep/app/subpackage ? My answer: definitely yes. We already agree that we should have both site-dep for binary code and site-indep for python code, so there is no way to

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-17 Thread Thomas Wouters
On 3/18/06, Neal Becker [EMAIL PROTECTED] wrote: x86_64 is multiarch.That means, we allow both i386 and x86_64 binaries tocoexits.Is the proposal that python should not support this?That wouldbe unfortunate.Not within a single interpreter, I'd say. Extensions compiled for x86_64 will not load into

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-17 Thread Bob Ippolito
On Mar 17, 2006, at 4:38 PM, Neal Becker wrote: Martin v. Löwis wrote: Neal Becker wrote: Sorry, maybe I used confusing terminology. A reference is here: http://fedoraproject.org/wiki/Packaging/Python This is the current setup. For example, this is a standard macro used by Redhat in

[Python-Dev] Problem with module loading on multi-arch?

2006-03-16 Thread Neal Becker
I just installed TwistedSumo-2006-02-12 on x86_64, and noticed a problem. It installs arch-dep stuff into /usr/lib64/python2.4/site-packages/twisted, and arch-indep into /usr/lib/python2.4/site-packages/twisted as it should. But: from twisted.web import html exceptions.ImportError: No

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-16 Thread Martin v. Löwis
Neal Becker wrote: I'm guessing that what's happening is that since there is an arch-dep/twisted, we never find the module arch-indep/twisted/web. If my analysis (guess) is correct, I think we have a problem with the module search. That is quite possible. I keep applying patches from people

Re: [Python-Dev] Problem with module loading on multi-arch?

2006-03-16 Thread Neal Becker
Martin v. Löwis wrote: Neal Becker wrote: I'm guessing that what's happening is that since there is an arch-dep/twisted, we never find the module arch-indep/twisted/web. If my analysis (guess) is correct, I think we have a problem with the module search. That is quite possible. I keep