ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: [devel] python-modules-encodings
Date: Sun, 18 Mar 2007 18:37:20 +0300
Message-ID: <20070318153720.GV6039@solemn.turbinal> (raw)
In-Reply-To: <20070315091249.GV21920@immo.ru>

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

On Thu, Mar 15, 2007 at 12:12:49PM +0300, Alexey I. Froloff wrote:
> Самое основное, что должно входить в python-base, это (filereq
> зацепил пару левых каталогов):

Кстати, filereq из моего rpm-utils.git уже не выводит каталогов.
Правда, там есть ещё над чем подумать.

> $ filereq /dev/stdout python -c 1 | fgrep python2.4 | grep -v \\.pyc\$
> /usr/lib/libpython2.4.so.1.0                                     
> /usr/lib/python2.4
> /usr/lib/python2.4/
> /usr/lib/python2.4/UserDict.py
> /usr/lib/python2.4/codecs.py
> /usr/lib/python2.4/copy_reg.py
> /usr/lib/python2.4/encodings
> /usr/lib/python2.4/encodings/__init__.py
> /usr/lib/python2.4/encodings/aliases.py
> /usr/lib/python2.4/encodings/koi8_r.py

Вот тут есть проблема.
Python/Python/codecs.c:

   834      mod = PyImport_ImportModuleEx("encodings", NULL, NULL, NULL);
   835      if (mod == NULL) {
   836          if (PyErr_ExceptionMatches(PyExc_ImportError)) {
   837              /* Ignore ImportErrors... this is done so that
   838                 distributions can disable the encodings package. Note
   839                 that other errors are not masked, e.g. SystemErrors
   840                 raised to inform the user of an error in the Python
   841                 configuration are still reported back to the user. */
   842              PyErr_Clear();
   843              return 0;
   844          }
   845          return -1;
   846      }

То есть, с одной стороны, питон как бы хорошо работает из без этих
encodings.  С другой стороны, он всегда пытается их загружать.
И в этом коде я не вижу никакого естественного способа отбить у
него эту охоту.  Получается, buildreq будет всегда цеплять
python-modules-encodings.

[...]
> /usr/lib/python2.4/types.py
> /usr/lib/python2.4/warnings.py
> 
> чтобы можно было линковаться с libpython.

Не понял, зачем линковаться с libpython через python-base.
Нужно наверное поставить python-devel и использовать какой-нибудь
стандартный способ линковки с липитоном, если таковой существует
(как в перле).

Или ты просто vim хочешь линковать с либпитоном, не вытаскивая при
этом "полную поставку питона"?

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

  parent reply	other threads:[~2007-03-18 15:37 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15  5:56 [devel] [git update] packages/python: heads/master Alexey M. Tourbin
2007-03-15  9:12 ` Alexey I. Froloff
2007-03-15  9:14   ` Aleksey Avdeev
2007-03-15  9:36     ` Ivan Fedorov
2007-03-15  9:33       ` Aleksey Avdeev
2007-03-15  9:50         ` Ivan Fedorov
2007-03-15  9:57           ` Aleksey Avdeev
2007-03-15 10:15             ` Ivan Fedorov
2007-03-18 22:10           ` [devel] [JT] python policy и отношение к коллегам Michael Shigorin
2007-03-18 22:25             ` Dmitry V. Levin
2007-03-19 18:04               ` Ivan Fedorov
2007-03-19 18:03             ` Ivan Fedorov
2007-03-19 18:29               ` Alexey I. Froloff
2007-03-19 18:34                 ` Ivan Fedorov
2007-03-19 18:52                   ` Alexey I. Froloff
2007-03-19 19:08                     ` Ivan Fedorov
2007-03-19 19:16                       ` Alexey I. Froloff
2007-03-19 20:03                         ` Ivan Fedorov
2007-03-19 20:30                           ` Alexey I. Froloff
2007-03-19 21:26                             ` Денис Смирнов
2007-03-19 22:20                               ` Alexey I. Froloff
2007-03-19 22:23                                 ` Konstantin Pavlov
2007-03-19 22:40                                 ` Dmitry V. Levin
2007-03-19 23:23                                   ` Alexey I. Froloff
2007-03-20  9:08                                     ` Денис Смирнов
2007-03-20  9:16                                       ` Ivan Fedorov
2007-03-20  9:37                                         ` Денис Смирнов
2007-03-19 21:14                         ` Денис Смирнов
2007-03-15  9:41       ` [devel] [git update] packages/python: heads/master Mikhail Gusarov
2007-03-15  9:43         ` Ivan Fedorov
2007-03-15  9:45           ` Mikhail Gusarov
2007-03-15 20:03       ` Konstantin A. Lepikhov
2007-03-15  9:38     ` Mikhail Gusarov
2007-03-18 15:37   ` Alexey Tourbin [this message]
2007-03-18 15:41     ` [devel] python-modules-encodings Mikhail Gusarov
2007-03-18 15:47       ` Alexey Tourbin
2007-03-18 15:52         ` Mikhail Gusarov
2007-03-18 15:59           ` Alexey Tourbin
2007-03-18 16:10             ` Mikhail Gusarov
2007-03-18 16:21               ` Alexey Tourbin
2007-03-18 16:29                 ` Mikhail Gusarov
2007-03-18 17:00                   ` Alexey I. Froloff
2007-03-18 18:28                     ` Alexey Tourbin
2007-03-18 20:10                       ` Mikhail Gusarov
2007-03-19 22:23                         ` [devel] buildreq Dmitry V. Levin
2007-03-18 21:38                       ` [devel] python-modules-encodings Alexey I. Froloff
2007-03-19 17:53                       ` Ivan Fedorov
2007-03-19 18:24                         ` Alexey Tourbin
2007-03-19 18:42                           ` Ivan Fedorov
2007-03-19 18:51                             ` Alexey Tourbin
2007-03-19 19:12                               ` Ivan Fedorov
2007-03-19 19:36                                 ` Alexey Tourbin
2007-03-19 19:58                                   ` Ivan Fedorov
2007-03-18 17:02                   ` Michael Shigorin
2007-03-19 17:54                     ` Ivan Fedorov
2007-03-19 21:25                       ` [devel] buildreq += autoignore Michael Shigorin
2007-03-19 21:36                         ` Alexey Tourbin
2007-03-19 21:56                           ` Alexey I. Froloff
2007-03-19 22:03                             ` Alexey Tourbin
2007-03-19 22:13                               ` Michael Shigorin
2007-03-19 22:21                                 ` Alexey Tourbin
2007-03-19 22:28                                   ` Dmitry V. Levin
2007-03-19 22:34                                     ` Michael Shigorin
2007-03-20 17:11                                       ` Igor Zubkov
2007-03-20 17:13                                         ` Alexey Tourbin
2007-03-20 17:16                                           ` Igor Zubkov
2007-03-19 22:43                                     ` Motsyo Gennadi aka Drool
2007-03-19 22:48                                       ` Dmitry V. Levin
2007-03-19 23:00                                         ` Motsyo Gennadi aka Drool
2007-03-19 23:08                                           ` Alexey Tourbin
2007-03-29 22:26                           ` [devel] [FR] buildreq: non-pruned deps as a spec comment Michael Shigorin
2007-03-29 22:51                             ` [devel] " Alexey Tourbin
2007-03-30  7:52                               ` Michael Shigorin
2007-03-18 16:54       ` [devel] python-modules-encodings Michael Shigorin
2007-03-18 20:11         ` Mikhail Gusarov
2007-03-18 15:52     ` Alexey I. Froloff
2007-03-18 18:12     ` Alexey Tourbin
2007-03-19 16:35     ` Alexey Morsov
2007-03-19 16:39       ` Alexey Tourbin
2007-03-19 17:05         ` Alexey Morsov
2007-03-15  9:43 ` [devel] [git update] packages/python: heads/master Ivan Fedorov
2007-03-15 10:55   ` Alexey Tourbin
2007-03-15 11:37     ` Ivan Fedorov
2007-03-15 12:11       ` Alexey Tourbin
2007-03-15 12:47         ` Ivan Fedorov
2007-03-15 12:57           ` Alexey I. Froloff
2007-03-15 13:19           ` Alexey Tourbin
2007-03-15 13:32             ` Ivan Fedorov
2007-03-15 13:19           ` 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=20070318153720.GV6039@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