From: Aleksey Avdeev <solo@solin.spb.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] U: [rpm-build-python3] LC_ALL=en_US.utf8 для python3.compileall.py (was: Безусловный LC_ALL=C в /usr/lib/rpm/functions) Date: Thu, 21 Feb 2013 18:16:22 +0400 Message-ID: <51262C36.8030908@solin.spb.ru> (raw) In-Reply-To: <51235C3E.9030403@solin.spb.ru> [-- Attachment #1: Type: text/plain, Size: 2147 bytes --] 19.02.2013 15:04, Aleksey Avdeev пишет: > 18.01.2013 15:41, REAL пишет: >> привет! >> >> кто-нибудь может подсказать, что изменилось и как теперь с этим жить? > > См. > <http://git.altlinux.org/people/ldv/packages/?p=rpm.git;a=commitdiff;h=279f487ca4461fc3cc29bc7eb9ea05a45abba4c1>. > ... > > Похоже, нужна ручка для запрета перекрыия правильного LC_ALL в > /usr/lib/rpm/functions. Цитирую <http://wiki.python.org/moin/Python2orPython3>: Guido van Rossum (the original creator of the Python language) decided to clean up Python 2.x properly, with less regard for backwards compatibility than is the case for new releases in the 2.x range. The most drastic improvement is the better Unicode support (with all text strings being Unicode by default) as well as saner bytes/Unicode separation. С учётом того, что полный переход на Unicode одна из фишек Python3 -- считаю что байткомпиляциию, для его файлов стоит проводить с использованием LC_ALL=en_US.utf8. Думаю, что стоит это делать через добавление LC_ALL=en_US.utf8 в строку вызова python3 (/usr/lib/rpm/brp.d/096-bytecompile_python3.brp). > > ... >> Package: python3-module-pycairo-1.10.1-alt3.git20120819 >> Status: Sisyphus/x86_64 test rebuild failed > ... >> /usr/src/tmp/python3-module-pycairo-buildroot using /usr/bin/python3 >> Traceback (most recent call last): >> File "/usr/lib/rpm/python3.compileall.py", line 131, in <module> >> exit_status = bool(main()) ... >> File "/usr/lib/rpm/python3.compileall.py", line 60, in executable >> line = open(file).readline() >> File "/usr/lib64/python3.2/encodings/ascii.py", line 26, in decode >> return codecs.ascii_decode(input, self.errors)[0] >> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 14: >> ordinal not in range(128) >> error: Bad exit status from /usr/src/tmp/rpm-tmp.27184 (%install) Взрыв вызывает выделенный символ: $ cat src/__init__.py ''' Copyright © 2003,2010 James Henstridge, Steven Chaplin ^ This file is part of pycairo. ... ''' from ._cairo import * -- С уважением. Алексей. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 897 bytes --]
next prev parent reply other threads:[~2013-02-21 14:16 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-18 11:41 ` [devel] Fwd: python3-module-pycairo-1.10.1-alt3.git20120819: Sisyphus/x86_64 test rebuild failed REAL 2013-01-18 11:43 ` REAL 2013-01-18 11:11 ` Sergei Epiphanov 2013-01-18 12:18 ` REAL 2013-01-18 11:17 ` Dmitry V. Levin 2013-02-19 11:04 ` [devel] U: Безусловный LC_ALL=C в /usr/lib/rpm/functions (was: Fwd: python3-module-pycairo-1.10.1-alt3.git20120819: Sisyphus/x86_64 test rebuild failed) Aleksey Avdeev 2013-02-19 12:18 ` Ivan A. Melnikov 2013-02-19 12:41 ` [devel] U: Безусловный LC_ALL=C в /usr/lib/rpm/functions Aleksey Avdeev 2013-02-19 13:50 ` REAL 2013-02-19 14:02 ` Aleksey Avdeev 2013-02-19 19:25 ` Dmitry V. Levin 2013-02-19 19:46 ` Aleksey Avdeev 2013-02-19 20:02 ` Aleksey Avdeev 2013-02-20 6:25 ` Ivan A. Melnikov 2013-02-20 15:42 ` Aleksey Avdeev 2013-02-22 6:07 ` Ivan A. Melnikov 2013-02-22 7:13 ` REAL 2013-02-22 6:20 ` Ivan A. Melnikov 2013-02-22 9:12 ` Aleksey Avdeev 2013-02-22 9:32 ` Aleksey Avdeev 2013-02-22 21:47 ` Dmitry V. Levin 2013-02-22 6:21 ` Ivan A. Melnikov 2013-02-22 9:40 ` Aleksey Novodvorsky 2013-02-22 10:32 ` Aleksey Avdeev 2013-02-20 5:02 ` REAL 2013-02-20 6:11 ` Aleksey Avdeev 2013-02-21 14:16 ` Aleksey Avdeev [this message] 2013-02-21 17:27 ` [devel] U: [rpm-build-python3] LC_ALL=en_US.utf8 для python3.compileall.py Aleksey Avdeev
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=51262C36.8030908@solin.spb.ru \ --to=solo@solin.spb.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