| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1804,8 +1804,9 @@ def missing_compiler_executable(cmd_names=[]): | |||
| 1804 | 1804 | missing. | |
| 1805 | 1805 | ||
| 1806 | 1806 | """ | |
| 1807 | - from setuptools._distutils import ccompiler, sysconfig, spawn | ||
| 1807 | + from setuptools._distutils import ccompiler, sysconfig | ||
| 1808 | 1808 | from setuptools import errors | |
| 1809 | + import shutil | ||
| 1809 | 1810 | ||
| 1810 | 1811 | compiler = ccompiler.new_compiler() | |
| 1811 | 1812 | sysconfig.customize_compiler(compiler) | |
@@ -1824,7 +1825,7 @@ def missing_compiler_executable(cmd_names=[]): | |||
| 1824 | 1825 | "the '%s' executable is not configured" % name | |
| 1825 | 1826 | elif not cmd: | |
| 1826 | 1827 | continue | |
| 1827 | - if spawn.find_executable(cmd[0]) is None: | ||
| 1828 | + if shutil.which(cmd[0]) is None: | ||
| 1828 | 1829 | return cmd[0] | |
| 1829 | 1830 | ||
| 1830 | 1831 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments