| Summary: | Падает на файлах с PEP 328: Absolute and Relative Imports | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Fr. Br. George <george> |
| Component: | rpm-build-python | Assignee: | Ivan Zakharyaschev <imz> |
| Status: | CLOSED DUPLICATE | QA Contact: | qa-sisyphus |
| Severity: | major | ||
| Priority: | P3 | CC: | darktemplar, george, imz, ldv |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
ack *** This bug has been marked as a duplicate of bug 17154 *** Вот ведь тормоз я. И не я один причём :). |
Если модуль использует PEP 328 ("from . import что-то"), /usr/lib/rpm/python.req.py падает с диагностикой File "/usr/lib/rpm/python.req.py", line 88, in match deps.append(node[2][1][1]) IndexError: string index out of range find-requires: ERROR: /usr/lib/rpm/python.req failed Причина в серьёзном отличии дерева разбора для "from . import" от классическогго "from что-то import". Возможно, такие запросы можно просто игнорировать, т. к. они приводят к зависимостям и от частей самого себя. А пока пакеты, использующие PEP 328, просто не собираются!