Skip to content

3.4.0 installs .doctrees files in manpage dir #276

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

Open
ainola opened this issue Mar 30, 2025 · 2 comments
Open

3.4.0 installs .doctrees files in manpage dir #276

ainola opened this issue Mar 30, 2025 · 2 comments
Assignees
Labels

Comments

@ainola
Copy link

ainola commented Mar 30, 2025

When building using python-build/python-install and sphinx on Arch I'm seeing the following files being shoved into places they shouldn't be!:

  • usr/share/man/man1/.doctrees/
  • usr/share/man/man1/.doctrees/environment.pickle.gz
  • usr/share/man/man1/.doctrees/index.doctree.gz
@kbdharun
Copy link
Member

Hi, can you provide the exact build steps/commands you tried in your side (or PKGBUILD file if you have one), the .doctrees files would get ignored due to https://github.com/tldr-pages/tldr-python-client/blob/main/docs/.gitignore.

So the final package definitely wouldn't generate or place anything other than the .1 man page file in the man/man1 directory. (Feel free to check our PyPI source distribution for reference: https://pypi.org/project/tldr/#files and also our publish workflow https://github.com/tldr-pages/tldr-python-client/blob/main/.github/workflows/publish.yml)

@kbdharun kbdharun added the bug label Mar 30, 2025
@ainola
Copy link
Author

ainola commented Mar 30, 2025

cd "tldr-python-client-$pkgver"
make -C docs
python -m build --wheel --no-isolation
python -m installer --destdir="$pkgdir" dist/*.whl

I'm not sure what the .gitignore file has to do with the packaging, though. I'm using the distributed tarball in the releases page.

@kbdharun kbdharun self-assigned this Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants