From cc6bbbeb1c824da64a59fbd1a483c780bc121c3b Mon Sep 17 00:00:00 2001 From: Philippe Blain Date: Thu, 12 Nov 2020 10:21:34 -0500 Subject: Distribute the manpage with the pip package The 'data_files' option to setuptools.setup can be used to install additional files "outside" of the package [1]. Use it so that the manpage is installed with the package. Install the manpage to '$PREFIX/share/man/man5', mimicking what the Filesystem Hiararchy Standard mandates for the '/usr/local/' prefix [2]. Prefer '$PREFIX/share/man/man5' to '$PREFIX/man/man5' since the later is deprecated [3]. [1] https://docs.python.org/3/distutils/setupscript.html#installing-additional-files [2] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s11.html#idm236091648080 [3] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s11.html#ftn.idm236091648080 Signed-off-by: Philippe Blain --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 65ede59..867b5cf 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ setup( license='GPLv2+', long_description=read('man/b4.5.rst'), long_description_content_type='text/x-rst', + data_files = [('share/man/man5', ['man/b4.5'])], keywords=['git', 'lore.kernel.org', 'patches'], install_requires=[ 'requests' -- cgit v1.2.3