GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — Docs: Create venv if missing by hugovk · Pull Request #98266 · python/cpython Conversation
Member
ProblemI started getting this error: $ make -C Doc clean rm -rf ./venv rm -rf build/* $ make -C Doc html mkdir -p build Building NEWS from Misc/NEWS.d with blurb PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -j auto -W . build/html Running Sphinx v5.1.1 making output directory... done Theme error: no theme named 'python_docs_theme' found (missing theme.conf?) make: *** [build] Error 2 That's because I have no venv so it can't find the theme. The problem is we have this, which looks for Sphinx in the venv or SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build And in my case it's finding it in my Line 55 in b863b9c
But I don't get this warning: Lines 65 to 66 in b863b9c
FixTwo things (aka let's do it like the devguide)
https://github.com/python/devguide/blob/05f6d0c8d09bd757440e0346190dbd62e06c7251/Makefile#L9-L10
https://github.com/python/devguide/blob/05f6d0c8d09bd757440e0346190dbd62e06c7251/Makefile#L58-L64 BonusWhilst we're changing I expect missing Let's do as @zware suggested and define them right next to each target: #98189 (comment) We do this at Pillow and at work, it helps a lot. (I'll add it to the devguide and PEPs too.)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Right, so we need to be able to build using pre-downloaded tools not in the venv, so fix 1 and 2 are not needed. We could add a check for other missing tools in this guard: Lines 55 to 59 in b863b9c
In this case, (I think I've seen a similar problem for another tool that could be checked easily, but I can't remember what it was so I'll address it if it comes up again.) What's left? I think the bonus |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I went for a new, clean PR, please see #99396. And let's close this one, thanks for the background! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.