ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Странные зависимости на python
Date: Sun, 26 Aug 2007 20:16:05 +0400
Message-ID: <20070826161605.GK26788@solemn.turbinal> (raw)
In-Reply-To: <m3d4xcg0t6.fsf@altlinux.ru>

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

On Sat, Aug 25, 2007 at 03:00:37AM +0700, Michael Pozhidaev wrote:
> При сборке пакета с программой на python (orca) появляются странные зависимости.
> Так, например, после сборки и попытки установки появляется зависимость на python2.4(GONE).

У меня есть версия, что ORBit очень глубоко вклинивается в питоновский
"import".  То есть после того, как запустилось

	atspi.ORBit.load_typelib('GNOME_Speech')

дальше начинается что-то непотребное.

Может, этот орбит "левые модули" генерирует находу?
Он как раз по идее такой фигнёй должен уметь заниматься --
всякие там RPC-генерат находу делать.

> BuildRequires выставил buildreq как:
> # Automatically added by buildreq on Sat Aug 25 2007
> BuildRequires: gcc-c++ glib2-devel gnome-mag gnome-speech perl-XML-Parser python-dev python-module-pygnome-bonobo python-modules-compiler
> 
> Подумал, что надо явно указать ещё Requires:, пробовал вписывать python-module-pygnome и другие варианты,
> но не помогает. Сам пакет собирается без ошибок.
> Что здесь нужно сделать? Никогда раньше с python дела не имел, пробую в первый раз.

Прежде всего добейтесь, чтобы программа работала в конце стадии %build,
то есть чтобы типа

python ./src/что-то.py --help

выводило какой-нибудь хелп.  Это, во-первых, гарантирует минимальную
работосопособность, а во-вторых, естественным образом поможет
сгенирировать более полный BuildRequires.

[builder@solemn orca-2.19.6]$ PYTHONPATH=$PWD/src python src/orca/orca.py 
Traceback (most recent call last):
  File "src/orca/orca.py", line 54, in ?
    import braille
  File "/usr/src/RPM/BUILD/orca-2.19.6/src/orca/braille.py", line 53, in ?
    import brl
ImportError: No module named brl
[builder@solemn orca-2.19.6]$ 

В общем, добейтесь чтобы хоть кое как но работало.
Но вообще если вы с питоном никогда дела не имели...

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

  parent reply	other threads:[~2007-08-26 16:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-24 20:00 Michael Pozhidaev
2007-08-24 21:24 ` Alexey Tourbin
2007-08-24 23:01   ` Michael Pozhidaev
2007-08-25  9:42     ` Alexey Rusakov
2007-08-26 16:16 ` Alexey Tourbin [this message]
2007-08-26 16:21   ` Alexey Tourbin
2007-08-26 17:10     ` Michael Pozhidaev
2007-08-26 17:06   ` Michael Pozhidaev

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=20070826161605.GK26788@solemn.turbinal \
    --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