ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Evgeny Sinelnikov <sin@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] python-config ?
Date: Wed, 20 May 2009 14:33:35 +0400
Message-ID: <921f6bb40905200333m40c624d0y6ea30f467d483953@mail.gmail.com> (raw)
In-Reply-To: <20090520095654.GA22424@wo.int.altlinux.org>

20 мая 2009 г. 13:56 пользователь Dmitry V. Levin <ldv@altlinux.org> написал:
> On Wed, May 20, 2009 at 12:25:52PM +0400, Evgeny Sinelnikov wrote:
>> 19 мая 2009 г. 16:30 пользователь Dmitry V. Levin <ldv@altlinux.org> написал:
>> >> > Самое лучшее, что можно сделать -- это нарисовать (найти готовый и
>> >> > слегка адаптировать) на шелле враппер к pkg-config python.
>> >>
>> >> Ну, я думаю, переделать текущий питоновский вариант, но результат
>> >> выполнения от pkg-config отличаться не будет.
>> >
>> > Вот что получилось:
>> > $ python2.5-config --ldflags
>> > -lpython2.5
>> > $ pkg-config python --libs-only-L
>> > $ pkg-config python --libs-only-other
>> > - нестыковка.
>>
>> Действительно... Для меня, почему-то, равенство "--ldflags ==
>> --libs-only-L | --libs-only-other" оказалось не очевидно... Я так
>> понял, в alt7 всё уже есть...
>
> Нет, в alt7 я не трогал содержимое python-config, только фиксил упаковку.
>

Тогда уточняю...

Сравниваем:
$ pkg-config python --libs
-lpython2.5
$ pkg-config python --libs-only-l
-lpython2.5
$ pkg-config python --libs-only-other

$ pkg-config python --libs-only-L

$ pkg-config python --cflags
-I/usr/include/python2.5
$ pkg-config python --cflags-only-I
-I/usr/include/python2.5
$ pkg-config python --cflags-only-other

Уточняем:
$ python-config --help
Usage: /usr/bin/python-config
[--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
$ python-config --prefix
/usr
$ python-config --exec-prefix
/usr
$ python-config --libs
-lpython2.5
$ python-config --cflags
-I/usr/include/python2.5
$ python-config --ldflags
-lpython2.5
^^^^^^^^^^^^ <- исправляем
$ python-config --includes
-I/usr/include/python2.5


Получаем одну поправку. Так ли она критична? Не найдётся ли тех, что
использует только '--ldflags', ибо в исходном варианте -lpython2.5
присутствует.

-- 
Sin (Sinelnikov Evgeny)

  reply	other threads:[~2009-05-20 10:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12  7:04 Pavel Solntsev
2009-02-12  7:08 ` Andrey Rahmatullin
2009-02-12  7:11   ` Pavel Solntsev
2009-02-12  7:20     ` Pavel Solntsev
2009-02-12 10:23 ` Mikhail A. Pokidko
2009-02-12 10:37   ` Evgeny Sinelnikov
2009-02-12 10:42     ` Pavel Solntsev
2009-02-12 10:56       ` Alexey I. Froloff
2009-02-12 11:22       ` Ivan A. Melnikov
2009-02-15  0:08         ` Dmitry V. Levin
2009-02-15 21:40           ` Dmitry V. Levin
2009-02-16  6:58             ` Pavel Solntsev
2009-05-15 12:22             ` Evgeny Sinelnikov
2009-05-15 14:49               ` Dmitry V. Levin
2009-05-15 16:58                 ` Evgeny Sinelnikov
2009-05-15 17:03                   ` Dmitry V. Levin
2009-05-15 17:22                     ` Evgeny Sinelnikov
2009-05-19 12:30                       ` Dmitry V. Levin
2009-05-20  8:25                         ` Evgeny Sinelnikov
2009-05-20  9:56                           ` Dmitry V. Levin
2009-05-20 10:33                             ` Evgeny Sinelnikov [this message]
2009-05-20 10:42                               ` Dmitry V. Levin
2009-05-21 17:55                                 ` Evgeny Sinelnikov
2009-02-15  0:20         ` Alexey I. Froloff
2009-02-15  0:33           ` Dmitry V. Levin
2009-02-16  6:49           ` Pavel Solntsev
2009-02-12 10:39   ` Pavel Solntsev

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=921f6bb40905200333m40c624d0y6ea30f467d483953@mail.gmail.com \
    --to=sin@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