[Twisted-Python] twisted-2 won't work with Fedora

James Y Knight foom at fuhm.net
Wed Mar 29 11:04:41 EST 2006

On Mar 29, 2006, at 9:02 AM, Neal Becker wrote:

> There is a big problem with twisted on Fedora/Redhat multiarch.  For
> example, x86_64.
> The problem is that Fedora puts arch-independent (.py) code into a  
> different
> directory than arch-dependent code.
> Unfortunately, this doesn't quite work correctly with python's  
> module search
> algorithm.
> I realize the problem is with python module search, but it looks  
> like a big
> effort fix the code.

In the thread on python-dev, I thought I saw a simple enough solution:

On Mar 17, 2006, at 4:03 PM, 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 RPM SPEC files for python:
>> %define python_sitearch %(%{__python} -c "from distutils.sysconfig  
>> import
>> get_python_lib; print get_python_lib(1)")}
>> %define python_sitelib %(%{__python} -c "from distutils.sysconfig  
>> import
>> get_python_lib; print get_python_lib()")}
>> Clearly this practice is widespread.  It would seem that module  
>> search needs
>> some modification to fully support it.
> Ah. That isn't supported at all, at the moment. Redhat should not be
> using it. Instead, there shouldn't be a difference between sitearch  
> and
> sitelib.

In any case, I don't see why twisted should do anything to fix this  
problem, it's for either Fedora or Python to fix.


More information about the Twisted-Python mailing list