We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a07c1ac commit 301ae4eCopy full SHA for 301ae4e
1 file changed
setup.py
@@ -2,6 +2,7 @@
2
3
import glob
4
import os
5
+import shutil
6
import subprocess
7
import sys
8
@@ -77,10 +78,9 @@ def run(self):
77
78
79
class BuildCommand(distutils.command.build.build):
80
def _make_man_pages(self):
- from distutils.spawn import find_executable
81
- rstbin = find_executable("rst2man")
+ rstbin = shutil.which("rst2man")
82
if not rstbin:
83
- rstbin = find_executable("rst2man.py")
+ rstbin = shutil.which("rst2man.py")
84
85
sys.exit("Didn't find rst2man or rst2man.py")
86
0 commit comments