[Fedora-packaging] python: mixing sitearch and sitelib (was: python noarch vs arch)

Axel Thimm Axel.Thimm at ATrpms.net
Sat Sep 2 15:23:11 UTC 2006


Moving the discussion to fedora-packaging as if even memebers of the
packaging committee are confused and gove wrong advice, then this is
something that should be discussed and placed into the packaging
guidelines.

On Sat, Sep 02, 2006 at 11:09:22AM -0400, Jesse Keating wrote:
> On Sat, 2006-09-02 at 17:08 +0200, Axel Thimm wrote:
> > On Sat, Sep 02, 2006 at 10:48:11AM -0400, Jesse Keating wrote:
> > > Due to the way that python works, if any part of a python's
> > > module is arch specific (sitearch), the entire thing has to go
> > > into sitearch.  Python will not import part from sitearch and
> > > part from sitelib.  So it'd all have to go in sitearch.
> > 
> > That's wrong. 
> 
> Oh?  Care to expand upon this?
> 
> If you have a module, importable module that is, has an __init.py__ and
> all that, if you shove part of it in sitearch and part of it in sitelib,
> it won't work.  Is this statement wrong?  If so, please do explain.

You mean just the way python-elementtree (and thus yum) works exactly
that way since FC3?

Yes, that statement is wrong, just log onto a multilib system and
check ownership of parts of sitelib. For example on FC5/x86_64:

# rpm -qf --qf '%{n}-%{v}-%{r}.%{arch}.rpm\n' /usr/lib/python2.4/site-packages/* | uniq | grep x86_64
aqbanking-1.8.1beta-3.1.x86_64.rpm
audit-libs-python-1.1.5-1.x86_64.rpm
avahi-tools-0.6.10-1.FC5.x86_64.rpm
python-elementtree-1.2.6-4.2.1.x86_64.rpm
wireshark-0.99.2-fc5.2.x86_64.rpm
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20060902/a32ee88b/attachment.sig>


More information about the Fedora-packaging mailing list