-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-43425: Update setup.py not to use distutils.log #26969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
1709cb3
to
b1ea241
Compare
@@ -2667,7 +2673,7 @@ def copy_scripts(self): | |||
newfilename = filename + fullversion | |||
else: | |||
newfilename = filename + minoronly | |||
log.info('renaming %s to %s', filename, newfilename) | |||
log.info(f'renaming {filename} to {newfilename}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With your change, I no longer see this message. IMO you should mimick distutils setup() function which sets the logging thredshold to INFO:
File "/home/vstinner/python/main/./setup.py", line 2698, in main
setup(# PyPI Metadata (PEP 301)
File "/home/vstinner/python/main/Lib/distutils/core.py", line 134, in setup
ok = dist.parse_command_line()
File "/home/vstinner/python/main/Lib/distutils/dist.py", line 477, in parse_command_line
log.set_verbosity(self.verbose)
File "/home/vstinner/python/main/Lib/distutils/log.py", line 78, in set_verbosity
set_threshold(INFO)
To see the message on the main branch:
$ rm -rf build/scripts-3.11/
$ make
(...)
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank's nice catch :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Ok, this time I can ready "renaming ..." logs ;-)
Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
(cherry picked from commit a7e251b) Co-authored-by: Dong-hee Na <[email protected]>
GH-26986 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit a7e251b) Co-authored-by: Dong-hee Na <[email protected]>
https://bugs.python.org/issue43425