mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
When setup.py fails to find the necessary bits to build some modules, have it
print a slightly more informative message.
This commit is contained in:
parent
ca4669c152
commit
879975677a
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
@ -194,18 +194,21 @@ class PyBuildExt(build_ext):
|
|||
for e, f, g in zip(lst[::3], lst[1::3], lst[2::3]):
|
||||
print "%-*s %-*s %-*s" % (longest, e, longest, f,
|
||||
longest, g)
|
||||
print
|
||||
|
||||
if missing:
|
||||
print
|
||||
print "Failed to find the necessary bits to build these modules:"
|
||||
print_three_column(missing)
|
||||
print ("To find the necessary bits, look in setup.py in"
|
||||
" detect_modules() for the module's name.")
|
||||
print
|
||||
|
||||
if self.failed:
|
||||
failed = self.failed[:]
|
||||
print
|
||||
print "Failed to build these modules:"
|
||||
print_three_column(failed)
|
||||
print
|
||||
|
||||
def build_extension(self, ext):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue