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


Groups > comp.lang.python > #12295

Re: Understanding .pth in site-packages

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:verizon.net': 0.07; 'terry': 0.07; 'presume': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'read.': 0.10; 'egg': 0.16; 'reedy': 0.16; 'semanchuk': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'file,': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'work,': 0.23; 'unsure': 0.23; 'asked': 0.23; 'pm,': 0.24; 'aug': 0.24; 'changes,': 0.24; 'says': 0.25; 'preferred': 0.25; '27,': 0.29; 'subject: .': 0.29; 'example': 0.30; 'match': 0.30; 'folder.': 0.30; 'list': 0.32; 'to:addr:python-list': 0.33; 'operating': 0.33; 'header:User-Agent:1': 0.34; 'directory.': 0.34; 'doc': 0.34; 'header:X-Complaints-To:1': 0.35; 'folder': 0.35; 'file': 0.36; 'created': 0.36; 'but': 0.37; 'something': 0.37; 'could': 0.38; 'think': 0.38; 'received:org': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'might': 0.40; 'order': 0.62; 'match,': 0.73; '(still': 0.84; 'setup.py,': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Understanding .pth in site-packages
Date Sat, 27 Aug 2011 16:14:15 -0400
References <31bef8dc-d804-454d-85c7-8de1663052a8@glegroupsg2000goo.googlegroups.com> <mailman.466.1314465528.27778.python-list@python.org> <2763f908-2feb-4d2f-b422-433de26b2868@glegroupsg2000goo.googlegroups.com> <B593279B-2238-48B9-A797-E92B022B6F76@semanchuk.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To <B593279B-2238-48B9-A797-E92B022B6F76@semanchuk.com>
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.480.1314476409.27778.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1314476409 news.xs4all.nl 2482 [2001:888:2000:d::a6]:39769
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:12295

Show key headers only | View raw


On 8/27/2011 2:07 PM, Philip Semanchuk wrote:
>
> On Aug 27, 2011, at 1:57 PM, Josh English wrote:
>
>> Philip,
>>
>> Yes, the proper path should be c:\dev\XmlDB, which has the
>> setup.py, xmldb subfolder, the docs subfolder, and example
>> subfolder, and the other text files proscribed by the package
>> development folder.
>>
>> I could only get it to work, though, by renaming the xmldb folder
>> in the site-packages directory, and deleting the egg file created
>> in the site-packages directory.
>>
>> Why the egg file, which doesn't list any paths, would interfere I
>> do not know.
>>
>> But with those changes, the xmldb.pth file is being read.
>>
>> So I think the preferred search order is:
>>
>> 1. a folder in the site-packages directory 2. an Egg file (still
>> unsure why) 3. A .pth file
>
>
> That might be implementation-dependent or it might even come down to
> something as simple as the in which order the operating system
> returns files/directories when asked for a listing.

Doc says first match, and I presume that includes first match within a 
directory.

-- 
Terry Jan Reedy

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


Thread

Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 09:56 -0700
  Re: Understanding .pth in site-packages Philip Semanchuk <philip@semanchuk.com> - 2011-08-27 13:18 -0400
    Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 10:57 -0700
      Re: Understanding .pth in site-packages "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-08-27 19:45 +0000
        Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 15:39 -0700
          Re: Understanding .pth in site-packages "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-08-28 05:20 +0000
    Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 10:57 -0700
      Re: Understanding .pth in site-packages Philip Semanchuk <philip@semanchuk.com> - 2011-08-27 14:07 -0400
      Re: Understanding .pth in site-packages Terry Reedy <tjreedy@udel.edu> - 2011-08-27 16:14 -0400
      Re: Understanding .pth in site-packages Philip Semanchuk <philip@semanchuk.com> - 2011-08-27 16:28 -0400
        Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 15:49 -0700
        Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 15:49 -0700
          Re: Understanding .pth in site-packages Philip Semanchuk <philip@semanchuk.com> - 2011-08-27 23:01 -0400
      Re: Understanding .pth in site-packages Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-27 13:53 -0700
        Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 15:41 -0700
        Re: Understanding .pth in site-packages Josh English <Joshua.R.English@gmail.com> - 2011-08-27 15:41 -0700
          Re: Understanding .pth in site-packages Stephen Hansen <me+list/python@ixokai.io> - 2011-08-27 16:44 -0700
  Re: Understanding .pth in site-packages Peter Otten <__peter__@web.de> - 2011-08-27 19:29 +0200
  Re: Understanding .pth in site-packages Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-27 13:53 -0700

csiph-web