python: mixing sitearch and sitelib (was: python noarch vs arch)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpNEh0jGwr1O.pgp
Description: PGP signature

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux