Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19518

Re: Where to put data

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <torriem@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.01; 'ubuntu': 0.04; 'forcing': 0.07; 'python': 0.08; 'namespace': 0.09; 'am,': 0.12; 'folks': 0.15; 'apps.': 0.16; 'debian,': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'insist': 0.16; 'maintainers': 0.16; 'mangled': 0.16; 'recipes': 0.16; 'wrote:': 0.16; 'written': 0.19; 'appears': 0.19; 'checked': 0.20; "aren't": 0.21; 'subject:data': 0.21; 'maybe': 0.21; 'header :In-Reply-To:1': 0.22; 'debian': 0.23; 'libraries': 0.24; 'code': 0.25; 'guess': 0.25; "i'm": 0.27; 'putting': 0.28; 'mind.': 0.28; 'installed': 0.29; 'seem': 0.29; 'generally': 0.30; 'differently': 0.30; 'logic': 0.30; 'yes.': 0.30; 'pretty': 0.30; "i've": 0.31; 'dependent': 0.32; 'modules': 0.32; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'agree': 0.33; 'there': 0.33; 'this.': 0.33; 'belong': 0.34; '(not': 0.34; 'things': 0.35; 'entry': 0.37; 'but': 0.37; 'received:org': 0.37; 'getting': 0.37; 'useful': 0.38; 'received:192': 0.38; 'files': 0.39; 'doing': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'ever': 0.64; 'believe': 0.65; 'friends': 0.66; 'charset:gb2312': 0.78; 'inevitable': 0.84; 'scripts)': 0.84; 'subject:Where': 0.84; 'subject:put': 0.84; 'mere': 0.91
X-Virus-Scanned amavisd-new at torriefamily.org
Date Thu, 26 Jan 2012 20:20:24 -0700
From Michael Torrie <torriem@gmail.com>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16
MIME-Version 1.0
To python-list@python.org
Subject Re: Where to put data
References <8184572.1820.1327512393386.JavaMail.geo-discussion-forums@prj1> <mailman.5084.1327517343.27778.python-list@python.org> <15493090.103.1327530570987.JavaMail.geo-discussion-forums@prhb20> <mailman.5110.1327548663.27778.python-list@python.org> <3439055.1436.1327595421060.JavaMail.geo-discussion-forums@prno22>
In-Reply-To <3439055.1436.1327595421060.JavaMail.geo-discussion-forums@prno22>
Content-Type text/plain; charset=GB2312
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5151.1327634441.27778.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327634441 news.xs4all.nl 6840 [2001:888:2000:d::a6]:60537
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19518

Show key headers only | View raw


On 01/26/2012 09:30 AM, bvdp wrote:
> Yes. I agree and it's nice to have a confirmation. So far I've been
> putting all my program into /usr/local/share/MYPROGRAM and then
> simply inserting an entry into sys.path.
> 
> Then, for other systems, I check a few common locations until I find
> the installation.
> 
> I'm getting mangled by the debian maintainers and friends who seem to
> believe that python modules need to go into /usr/lib/python...

I guess the maintainers aren't distinguishing between python apps and
their submodules and general python modules (libraries), which is pretty
silly.  Even as a mere user I would not like my /usr/lib/python
directory cluttered with python code that is not useful generally but is
only for specific apps.  Namespace collisions are inevitable with other
python apps (not libraries) if folks insist on doing this.

Calibre appears to be in the Ubuntu standard repositories.  I just
checked and in calibre proper (not talking about dependent libraries and
things that would be useful outside of calibre), there are no python
files installed in /usr/lib/python/.  Calibre modules that belong to
calibre proper are in /usr/lib/calibre.  Recipes (really just python
scripts) are in /usr/share/calibre.  Maybe Ubuntu is doing things
differently than Debian, but I'm hard pressed to see the logic in
forcing everything ever written in python, such as submodules, installed
to /usr/lib/python.  Baffles the mind.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Where to put data bvdp <bob@mellowood.ca> - 2012-01-25 09:26 -0800
  Re: Where to put data Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-25 10:33 -0800
    Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-25 14:27 -0800
  Re: Where to put data Evan Driscoll <edriscoll@wisc.edu> - 2012-01-25 12:48 -0600
    Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-25 14:29 -0800
      Re: Where to put data Michael Torrie <torriem@gmail.com> - 2012-01-25 20:30 -0700
        Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-26 08:30 -0800
          Re: Where to put data Michael Torrie <torriem@gmail.com> - 2012-01-26 20:20 -0700
            Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-27 19:11 -0800
            Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-27 19:11 -0800
        Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-26 08:30 -0800
    Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-25 14:29 -0800
  Re: Where to put data "Martin P. Hellwig" <martin.hellwig@gmail.com> - 2012-01-26 02:16 +0000
  Re: Where to put data John Nagle <nagle@animats.com> - 2012-01-27 14:15 -0800
    Re: Where to put data bvdp <bob@mellowood.ca> - 2012-01-27 19:13 -0800

csiph-web