On Sat, Mar 24, 2007 at 03:35:23PM +0300, Dmitry V. Levin wrote: > On Fri, Mar 23, 2007 at 04:58:42PM +0300, Alexey M. Tourbin wrote: > > Update of /people/at/packages/python.git > > > > Changes statistics since `2.4.4-alt8-1-gf53bbc3' follows: > > modules-list/base-list | 1 + > > python.spec | 7 ++++++- > > 2 files changed, 7 insertions(+), 1 deletions(-) > > > > Changelog since `2.4.4-alt8-1-gf53bbc3' follows: > > commit 7c17d2037fa800c3785fd5145e3c3161d585087e > > Author: Alexey Tourbin > > Date: Fri Mar 23 16:21:32 2007 +0300 > > > > 2.4.4-alt9 > > > > - reconsidered interpackage dependencies, so that python-devel > > depends on all standard python modules > > - moved getopt.py from python-modules to python-base > > Не выходит каменный цветок: Выходит. :) Я это предвидел и озвучил в частной переписке. Дело в том, что в /usr/lib/rpm/brp-bytecompile_python слишком слабое условия для запуска перекомпиляции: if [ -n "$RPM_PYTHON" -a -x "$RPM_PYTHON" ] && [ `find -type f -name \*.py |wc -l` -gt 0 ]; then echo "Bytecompiling python modules in $PWD using $RPM_PYTHON" $RPM_PYTHON /usr/lib/rpm/python.compileall.py "--select=$RPM_PYTHON_COMPILE_METHOD" "--exclude=$RPM_PYTHON_COMPILE_EXCLUDE" "--include=$RPM_PYTHON_COMPILE_INCLUDE" ... В связи с внесением python-base в базовую сборочную среду условие [ -x /usr/bin/python ] всегда выполнено, а модулей для перекомпиляции в python-base не хватает. Это можно частично исправить. /usr/lib/rpm/python.compileall.py на самом деле компилирует не все *.py файлы, а только --include=/usr/lib. Но модуль py_compile он загружает всегда и в безусловном порядке. Если отложить загрузку py_compile до момента фактической компиляции питоновских модулей, то часть пакетов, может быть, починится. > error$ fgrep -l 'ImportError: No module named py_compile' * > amarok-1.4.5-alt2 > crossfire-maps-bigworld-1.9.0-alt1 > devhelp-0.12-alt2 > dict-yo-20031216-alt1 > easyvz-0.1-alt1 > ejabberd-mrim-0.1.1-alt1 > fslint-2.18-alt0 > fsme-examples-1.0.2-alt1 > gnome-applets-extra-bookmarks-0.5-alt1 > gnome-games-2.16.3-alt1 > jabberd2-mrim-0.1.1-alt1 > jmc-0.2.3-alt2 > lm_sensors-2.10.2-alt1 > lyx-1.4.1-alt0.1 > moodss-19.3-alt0.1 > mrsync-3.2.7-alt0.1 > pathological-1.1.3-alt3 > pyraider-0.1-alt1.1 > pyvnc2swf-0.8.2-alt1 > snowball-0.2-alt0.1 > stardict-tools-2.4.8-alt1 > tellico-1.2.9-alt1 > TeXmacs-1.0.6.7-alt1 > tuxpaint-0.9.16-alt0 > wrw-0.2.6-alt0.1 > xemacs-python-modes-1.06-alt2 > [тестовая пересборка ещё не закончилась]