Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591886 - dev-python/pyicu: broken doc generation
Summary: dev-python/pyicu: broken doc generation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 23:59 UTC by Göktürk Yüksek
Modified: 2016-09-21 11:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Göktürk Yüksek archtester gentoo-dev 2016-08-22 23:59:04 UTC
Hi,

There are some issues with the doc generation. There's a
  cd "${BEST_BUILD_DIR}" || die
line in the ebuild but AFAICT there's no such variable.

Furthermore, epydoc only supports python2.7. So when the active interpreter is python3, the doc generation fails with:

+---------------------------------------------------------------------
| In /var/tmp/portage/dev-python/pyicu-1.9.3/work/
| PyICU-1.9.3-python3_4/icu.py:
| Import failed (but source code parsing was successful).
|     Error: ImportError: No module named _icu (line 37)
|   

because the build dir is PyICU-1.9.3-python3_4 which contains _icu.cpython-34.so while the active interpreter is python2 for epydoc. I can confirm that the docs are properly generated if the build dir is PyICU-1.9.3-python2_7.

Lastly, dohtml is deprecated in EAPI 6.
Comment 1 Marek Szuba archtester gentoo-dev 2016-09-21 11:28:12 UTC
Fixed in 9c3f27570684bb7361652b13f6e6718fbe0ca5b0 and 221f3df7257b52f54f89b367760fe6cf8e165317, thanks for the heads-up.