Skip to content

Commit 54afe07

Browse files
committed
Adjust the widths of the messages during the build.
This makes them fit in a single line (usually).
1 parent aa1e5cf commit 54afe07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

setupext.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,18 @@ def is_min_version(found, minversion):
165165
# Define the display functions only if display_status is True.
166166
if options['display_status']:
167167
def print_line(char='='):
168-
print(char * 76)
168+
print(char * 79)
169169

170170
def print_status(package, status):
171-
initial_indent = "%22s: " % package
171+
initial_indent = "%18s: " % package
172172
indent = ' ' * 24
173-
print(textwrap.fill(str(status), width=76,
173+
print(textwrap.fill(str(status), width=79,
174174
initial_indent=initial_indent,
175175
subsequent_indent=indent))
176176

177177
def print_message(message):
178178
indent = ' ' * 24 + "* "
179-
print(textwrap.fill(str(message), width=76,
179+
print(textwrap.fill(str(message), width=79,
180180
initial_indent=indent,
181181
subsequent_indent=indent))
182182

@@ -1231,7 +1231,7 @@ class BackendTkAgg(OptionalBackendPackage):
12311231
force = True
12321232

12331233
def check(self):
1234-
return "installing; run-time loading from Python Tcl / Tk"
1234+
return "installing; run-time loading from Python Tcl/Tk"
12351235

12361236
def get_extension(self):
12371237
sources = [
@@ -1246,7 +1246,7 @@ def get_extension(self):
12461246
def add_flags(self, ext):
12471247
ext.include_dirs.insert(0, 'src')
12481248
if sys.platform == 'win32':
1249-
# PSAPI library needed for finding Tcl / Tk at run time
1249+
# PSAPI library needed for finding Tcl/Tk at run time
12501250
ext.libraries.extend(['psapi'])
12511251
elif sys.platform == 'linux':
12521252
ext.libraries.extend(['dl'])

0 commit comments

Comments
 (0)