From 559ec0062e051e60def227fc0045adb50b2f65e2 Mon Sep 17 00:00:00 2001 From: Milkey Mouse Date: Sat, 25 Nov 2017 17:06:02 -0800 Subject: [PATCH] Use name of command for "virtual man page" name This makes it slightly easier to debug manpage issues without removing the virtmanpage hack. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5ee70836c..6d0cb14d4 100644 --- a/setup.py +++ b/setup.py @@ -678,7 +678,7 @@ class build_man(Command): roles.register_local_role('issue', issue) # We give the source_path so that docutils can find relative includes # as-if the document where located in the docs/ directory. - man_page = publish_string(source=rst, source_path='docs/virtmanpage.rst', writer=manpage.Writer()) + man_page = publish_string(source=rst, source_path='docs/%s.rst' % name, writer=manpage.Writer()) with open('docs/man/%s.1' % name, 'wb') as fd: fd.write(man_page)