New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.gitignore seems a bit too aggressive or make distclean isn't aggressive enough #97731
Comments
|
The changeset broke out-of-tree builds. The Docs directory is in |
|
On Discord there were two suggested solutions to this: test -d Doc && $(MAKE) -C Doc cleanor: make -C $(srcdir)/Doc cleanwhich is a simpler version of: docdir=$(srcdir)/Doc
docclean:
test -d $(docdir) && $(MAKE) -C $docdir clean |
|
Another solution is you can apparently put a |
|
I'm using #98982 to try out the |
…8982) Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds.
…pythonGH-98982) Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds. (cherry picked from commit 22bab74) Co-authored-by: Brett Cannon <brett@python.org>
…pythonGH-98982) Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds. (cherry picked from commit 22bab74) Co-authored-by: Brett Cannon <brett@python.org>


smontanaro commentedOct 2, 2022
•
edited by bedevere-bot
Bug report
I recently moved from Linux back to a Mac. After a bunch of
rsynccommands I started to make sure stuff worked. When I got to my cpython repo, I couldn't gettest_toolsto pass because it continued to try and find a nonexistent Conda version of Python 3.9. (That always existed on my Linux box, so the problem was masked there.) Af first, I thought it was the Conda setup on the Mac, but eventually realized that the.../Doc/venv/binpython3symlink was to the old Linux path. I eventually dumped.../Doc/venvaltogether, after which everything worked as expected.Your environment
My old environment was Ubuntu 22.04 LTS with a miniconda installation whose base Python executable was 3.9. My new environment is a Mac M1 running Monterey with a miniconda installation also using 3.9 as its base Python interpreter. The difference in paths though (
/home/skip/miniconda3/...vs/Users/skip/miniconda3/...) exposed the problem.Up-to-date CPython repo on main branch.
MacOS Monterey (M1 architecture)
Proposed solution:
While it's nice that the
.gitignorefile hides a bunch of extraneous detail, in this case I think it might have been nice ifDoc/venvwas revealed as not under Git's control. Alternately, it seems likemake distcleanshould remove that directory.Oddly enough, looking at the
doccleantarget in the top-levelMakefile, I see that it doesn't use thecleantarget inDoc/Makefileto do its dirty work. Nor is it used by any of the cleaner targets in that file.The two targets don't even clean up the same cruft. Here are the cleaner targets from
Doc/MakefileDoc/tools/{sphinx,pygments,docutils}doesn' exist after executingmake -C Doc html. I suspect thedoccleantarget could simply be replaced bymake -C Doc clean, and made a dependency of thedistcleantarget.make docclean#98982make docclean(GH-98982) #99024make docclean(GH-98982) #99025The text was updated successfully, but these errors were encountered: