Skip to content

Commit 301ae4e

Browse files
atodorovcrobinso
authored andcommitted
Use shutil.which() instead of find_executable(). Refs #134
unfortunately this doesn't seem to work
1 parent a07c1ac commit 301ae4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import glob
44
import os
5+
import shutil
56
import subprocess
67
import sys
78

@@ -77,10 +78,9 @@ def run(self):
7778

7879
class BuildCommand(distutils.command.build.build):
7980
def _make_man_pages(self):
80-
from distutils.spawn import find_executable
81-
rstbin = find_executable("rst2man")
81+
rstbin = shutil.which("rst2man")
8282
if not rstbin:
83-
rstbin = find_executable("rst2man.py")
83+
rstbin = shutil.which("rst2man.py")
8484
if not rstbin:
8585
sys.exit("Didn't find rst2man or rst2man.py")
8686

0 commit comments

Comments
 (0)