From: "George V. Kouryachy" <george@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Питоньи пакеты
Date: Fri, 6 Feb 2009 16:44:21 +0300
Message-ID: <20090206134420.GB12258@imap.altlinux.org> (raw)
In-Reply-To: <20090205231917.GB12169@wo.int.altlinux.org>
On Fri, Feb 06, 2009 at 02:19:17AM +0300, Dmitry V. Levin wrote:
>> Если да -- бага в rpm-build-python или рядом.
>
> Наверное, в файле /usr/lib/rpm/python.compileall.py
Не-а, в /etc/rpm/macros.d/python:
. . .
%_python_lib_path ""
%_python_req_method slight
%_python_req_skip ""
%_python_compile_method ALL
-%_python_compile_exclude /usr/share/doc
-%_python_compile_include /usr/%_lib
+%_python_compile_exclude %_defaultdocdir
+%_python_compile_include %_target_libdir
%_python_compile_deep 20
%_python_compile_skip_x 1
%_python_compile_clean 1
Похоже, делать надо так. Видимо, слово "compile" действовало магически.
Или в самом деле байт-код некроссплатформенный. Вот и проверим :).
Кстати, а что будет, если пакет -- arch, а подпакет -- noarch, и в нём
есть .py? %_target_libdir генерится для подпакета или для всех пакетов
одного src.rpm?
--
George V. Kouryachy (aka Fr. Br. George)
mailto:george at altlinux_org
P.S. bdist_altrpm пока просто выкинул. Это преступно?
next prev parent reply other threads:[~2009-02-06 13:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 22:44 [devel] Питоньи пакеты и girar-builder George V. Kouryachy
2009-02-05 22:57 ` Dmitry V. Levin
2009-02-05 23:10 ` George V. Kouryachy
2009-02-05 23:19 ` [devel] Питоньи пакеты Dmitry V. Levin
2009-02-06 13:44 ` George V. Kouryachy [this message]
2009-02-12 13:25 ` Dmitriy M. Maslennikov
2009-02-06 7:13 ` [devel] Питоньи пакеты и girar-builder Andrey Rahmatullin
2009-02-06 9:13 ` Ivan Fedorov
2009-02-06 7:13 ` Andrey Rahmatullin
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=20090206134420.GB12258@imap.altlinux.org \
--to=george@altlinux.org \
--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