Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916265 - package man pages to python wheels
Summary: package man pages to python wheels
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 15:09 UTC by Wu, Zhenyu
Modified: 2023-10-25 15:09 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 Wu, Zhenyu 2023-10-25 15:09:58 UTC
python allow developers package some data file into wheels. For example,

If developer uses `setuptools`, they can

```
# pyproject.toml
[tool.setuptools.data-files]
"share/applications" = ["/the/path/of/XXX.desktop"]
"share/icons/hicolor/36x36/apps" = ["the/path/of/icon.png"]
"share/man/man1" = ["/the/path/of/foo.1"]
"share/bash-completion/completions" = ["/the/path/of/bash_completion.sh"]
"share/zsh/site-functions" = ["/the/path/of/_zsh_completion"]
```

Then user `pip install --user foo` will get:

- `~/.local/lib/python3.10/site-packages/foobar`
- `~/.local/share/applications/XXX.desktop`
- `~/.local/share/icons/hicolor/36x36/apps/icon.png`
- `~/.local/share/man/man1/foo.1`
- `~/.local/share/bash-completion/completions/bash_completion.sh`
- `~/.local/share/zsh/site-functions/_zsh_completion`

Although portage use `meson-python`, It still support [this feature](https://meson-python.readthedocs.io/en/latest/reference/limitations.html#non-package-data-files). How about packaging man pages into wheel?