ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Импорт модуля pyton gnomecanvas из rpm
Date: Tue, 20 Sep 2005 18:36:51 +0900
Message-ID: <432FD833.60402@altlinux.ru> (raw)
In-Reply-To: <432FD511.8010706@altlinux.ru>

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

Slava Dubrovskiy пишет:
> Здравствуйте.
> 
> Есть программа (GCompris), которая проверяет наличие в системе
> необходимые ей для работы модули python. В данном случае gnomecanvas
> (пакет python-module-pygnome-canvas-2.12.0-alt0.1)
> Вот пример, как она это делает:
> 
> #!/bin/sh
> prog="
> import sys
> try:
>     import gnomecanvas
> except ImportError:
>     sys.exit(1)
> except:
>     sys.exit(0)
> sys.exit(0)"
> if python -c "$prog"
> then
>  echo Yes
> else
>  echo No
> fi
> 
> 
> Так вот, если я запускаю обычно из mc или консоли, то в ответ получаю
> Yes, а если я указываю этот скрипт в спеке в секции %build и пытаюсь
> собрать (rpm -ba), то No.
Уберите try/except, и посмотрите, что напишется в stderr.


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

  parent reply	other threads:[~2005-09-20  9:36 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-20  9:23 Slava Dubrovskiy
2005-09-20  9:31 ` [devel] " Michael Shigorin
2005-09-20 10:00   ` Slava Dubrovskiy
2005-09-20 10:03     ` Michael Shigorin
2005-09-20 10:03     ` Eugene Ostapets
2005-09-20 10:15       ` Alexey Borovskoy
2005-09-20 10:35         ` Eugene Ostapets
2005-09-20 10:37           ` Michael Shigorin
2005-09-20 10:42             ` Eugene Ostapets
2005-09-20 10:52               ` Michael Shigorin
2005-09-20 10:56                 ` Eugene Ostapets
2005-09-20 11:11                   ` Vital Khilko
2005-09-20 11:25                     ` [devel] Re: �� Eugene Ostapets
2005-09-20 21:48                       ` Vitaly Lipatov
2005-09-21  7:31                         ` [devel] <lost subject> Andrei Bulava
2005-09-21  8:35                           ` Vitaly Lipatov
2005-09-21  9:21                             ` [devel] поддержка rar в 7-zip / 7za Andrei Bulava
2005-09-21  9:49                               ` Vitaly Lipatov
2005-09-21  9:59                                 ` Антон
2005-09-21 12:01                                 ` Andrei Bulava
2005-09-21 20:42                                   ` [devel] поддержка rar в 7-zip / 7za [JT] Vitaly Lipatov
2005-09-22  7:05                                     ` [devel] поддержка rar в 7-zip / 7za [legal] Andrei Bulava
2005-09-22 10:23                                       ` Alexey Rusakov
2005-09-22 21:37                                       ` Vitaly Lipatov
2005-09-23 12:55                             ` [devel] Re: unrar/p7zip Michael Shigorin
2005-09-23 13:42                               ` [devel] распаковка arj (was: unrar/p7zip) Michael Shigorin
2005-09-24  8:08                                 ` Vitaly Lipatov
2005-09-26  7:56                                   ` [devel] " Michael Shigorin
2005-09-21  9:11                         ` [devel] Re: архиваторы и буковки Michael Shigorin
2005-09-20 11:28                 ` [devel] Re: Импорт модуля pyton gnomecanvas из rpm Slava Dubrovskiy
2005-09-20 10:04     ` Slava Dubrovskiy
2005-09-20  9:36 ` Ivan Fedorov [this message]
2005-09-20  9:56   ` [devel] " Slava Dubrovskiy
2005-09-20 12:00     ` Dmitry V. Levin

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=432FD833.60402@altlinux.ru \
    --to=ns@altlinux.ru \
    --cc=devel@altlinux.ru \
    /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