ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Mikhail Gusarov <dottedmag@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] rpm-build-python-0.34-alt1 regression
Date: Mon, 08 Jun 2009 23:07:05 +0700
Message-ID: <87y6s2676e.fsf@vertex.dottedmag.net> (raw)
In-Reply-To: <20090608155618.GA23518@evg.krastel.ru> (Terechkov Evgenii's message of "Mon, 8 Jun 2009 23:56:18 +0800")

[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]


Twas brillig at 23:56:18 08.06.2009 UTC+08 when evg-krsk@yandex.ru did gyre and gimble:

 TE> Хм. А если я сейчас упакую свой
 TE> /usr/lib/python2.5/site-packages/PUL/Image.py + PUL.pth - то какой из
 TE> пакетов вытянется тому, что затребует python2.5(Image)?

[dottedmag@vertex:~]% python
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> Image.__file__
'/usr/lib/python2.5/site-packages/PIL/Image.pyc'

Интересно, почему? Потому, что PIL выше в sys.path:

>>> import sys
>>> sys.path
['', '/home/dottedmag/openinkpot/trac/trac-trunk', '/usr/lib/python2.5/site-packages', '/home/dottedmag/openinkpot/trac/translatedpagesmacro', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/PUL', '/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/pymodules/python2.5', '/usr/lib/pymodules/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode']
>>> 

Так что надо смотреть внутрь интерпретатора на предмет выяснения, в
каком порядке добавляются в sys.path пути из .pth-файлов.

-- 

[-- Attachment #2: Type: application/pgp-signature, Size: 834 bytes --]

  reply	other threads:[~2009-06-08 16:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-06 14:17 [devel] python module provides Alexey Morsov
2009-06-06 16:18 ` Dmitry V. Levin
2009-06-07 10:22   ` Alexey Morsov
2009-06-07 10:52     ` Dmitry V. Levin
2009-06-07 12:24       ` Alexey Morsov
2009-06-07 12:59         ` Dmitry V. Levin
2009-06-07 15:25           ` Terechkov Evgenii
2009-06-07 16:41             ` [devel] rpm-build-python-0.34-alt1 regression Dmitry V. Levin
2009-06-08  7:34               ` Alexey Tourbin
2009-06-08 10:41                 ` Terechkov Evgenii
2009-06-08 14:02                   ` Alexey Tourbin
2009-06-08 15:19                     ` Terechkov Evgenii
2009-06-08 15:33                       ` Alexey Tourbin
2009-06-08 15:36                         ` Mikhail Gusarov
2009-06-08 15:56                           ` Terechkov Evgenii
2009-06-08 16:07                             ` Mikhail Gusarov [this message]
2009-06-08 16:08                             ` Alexey Tourbin
2009-06-13  3:31                         ` Alexey Tourbin
2009-06-08 15:46                     ` Ivan Fedorov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6s2676e.fsf@vertex.dottedmag.net \
    --to=dottedmag@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git