| Summary: | dev-python/flask-{0.10.1-r2,0.11.1-r1} with USE=doc and without flask already installed - make -j5 -C docs html: sphinx: To build the documentation, The distribution information of Flask Has to be available. ... | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | bircoph, gmturner007, lssndrbarbieri |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build.log
flask-better-sphinx-invocation.patch |
||
|
Description
Juergen Rose
2015-02-17 21:44:04 UTC
'USE=-doc emerge -v1 flask' works. Same here: dev-python/flask-0.11.1-r1[doc] fails: sphinx-build -b html -d _build/doctrees . _build/html Making output directory... Running Sphinx v1.2.3 Flask must be installed to build the documentation. Install from source using `pip install -e .` in a virtualenv. Makefile:38: recipe for target 'html' failed make: *** [html] Error 1 Apparently USE="doc" must either depend on flask being already instally or use just built flask to generate docs. Created attachment 468532 [details, diff]
flask-better-sphinx-invocation.patch
This patch apes the first thing I saw online googling for examples of ebuild sphinx invocation.
Since this works and the old thing doesn't, maybe some patch like the enclosed represents state-of-the-art (or at least less severely antiquated) ebuild sphinx invocation best-practices and could be adopted by all the flask ebuilds. But, seriously, I haven't looked into it any further than that, so, take this assessment with a big grain of salt, please.
Still happens with 1.1.1:
* Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p
Running Sphinx v1.7.5
Configuration error:
There is a programable error in your configuration file:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/sphinx/config.py", line 161, in __init__
execfile_(filename, config)
File "/usr/lib/python3.6/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
exec_(code, _globals)
File "conf.py", line 9, in <module>
release, version = get_version("Flask")
File "/usr/lib/python3.6/site-packages/pallets_sphinx_themes/__init__.py", line 134, in get_version
release = pkg_resources.get_distribution(name).version
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
dist = get_provider(dist)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 357, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Flask' distribution was not found and is required by the application
Old version no longer present. Feel free to reopen if you can reproduce with current. Now I get the other issue: https://bugs.gentoo.org/701140 |