Skip to content

Commit b376719

Browse files
atodorovcrobinso
authored andcommitted
Install without man pages if rst2man not found. Fixes #134
Prior to 68a1dc6 the man page generation was skipped if it failed, which worked fine for users on both Windows and Linux where rst2man was missing. This commit brings back the same behavior.
1 parent 301ae4e commit b376719

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import shutil
66
import subprocess
77
import sys
8+
import warnings
89

910
import distutils.command.build
1011
from distutils.core import Command
@@ -82,7 +83,8 @@ def _make_man_pages(self):
8283
if not rstbin:
8384
rstbin = shutil.which("rst2man.py")
8485
if not rstbin:
85-
sys.exit("Didn't find rst2man or rst2man.py")
86+
warnings.warn("Didn't find rst2man or rst2man.py. Installing without man pages")
87+
return
8688

8789
for path in glob.glob("man/*.rst"):
8890
base = os.path.basename(path)

0 commit comments

Comments
 (0)