ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] rpm-build-python-0.34-alt1 regression
Date: Mon, 8 Jun 2009 20:08:12 +0400
Message-ID: <20090608160812.GE22520@altlinux.org> (raw)
In-Reply-To: <20090608155618.GA23518@evg.krastel.ru>

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

On Mon, Jun 08, 2009 at 11:56:18PM +0800, Terechkov Evgenii wrote:
> 08.06.2009 Mikhail Gusarov писал:
> 
> >  AT> Но это тогда значит, что каждый питоновский модуль может
> >  AT> предоставлять более одной зависимости Provides!  То есть его можно
> >  AT> загрузить как Image и как PIL.Image, и эти формы более-менее
> >  AT> равноправны.
> > Так и есть.
> > [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'
> > >>> import PIL.Image
> > >>> PIL.Image.__file__
> > '/usr/lib/python2.5/site-packages/PIL/Image.pyc'
> > >>> 
> 
> Хм. А если я сейчас упакую свой
> /usr/lib/python2.5/site-packages/PUL/Image.py + PUL.pth - то какой из
> пакетов вытянется тому, что затребует python2.5(Image)?

Зависимости не объясняют, какой пакет должен вытягиваться, они лишь
отражают фактическое положение дел.  Если в коде написано 'import Image'
то должна быть зависимость на python(Image).  А кого надо вытягивать это
совсем другая проблема.  Но, по крайней мере, зависимости должны
обеспечить, что инструкция import не отвалится сразу же с диагностикой
'not found'.

В некотором смысле, зависимости -- это искусство возможного.
Возможное -- это фактическое положнеие дел, что написано в коде.
А невозможное -- это предсказание будущего (спекулятивное выполнение
кода для установления соответствия между именами модулей и файлами
и т.п.).

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

  parent reply	other threads:[~2009-06-08 16:08 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
2009-06-08 16:08                             ` Alexey Tourbin [this message]
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=20090608160812.GE22520@altlinux.org \
    --to=at@altlinux.ru \
    --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