[Python-Dev] PEP 3149 thoughts

Piotr Ożarowski piotr at debian.org
Mon Sep 6 12:08:36 CEST 2010


[Georg Brandl, 2010-09-05]
> Am 05.09.2010 19:22, schrieb "Martin v. Löwis":
> > 2. Why does the PEP recommend installing stuff into /usr/share/pyshared?
> >    According to the Linux FHS, /usr/share is for Architecture-
> >    independent data, see
> > 
> > http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA
> >    In particular, it's objective is that you can NFS-share it across,
> >    say, both SPARC Linux and x86 Linux. I believe the PEP would break
> >    this, as SPARC and x86 executables would override each other.
> 
> Indeed.  I think this is probably just an oversight and should be corrected
> in the PEP.  However, it's the distributions' call anyway.

FYI: in Debian we will use /usr/lib/python3/ or even
/usr/lib/python3/dist-packages/, as there are many modules with
things like:
  os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', 'share', 'foo')
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


More information about the Python-Dev mailing list