Skip to content
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

bpo-43425: Update setup.py not to use distutils.log #26969

Merged
merged 3 commits into from Jul 2, 2021

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Jun 30, 2021

@corona10
Copy link
Member Author

@corona10 corona10 commented Jun 30, 2021

@vstinner

renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11 contains in names
Do you have any ideas? -> solved

@corona10 corona10 changed the title bpo-43425: Update setup.py not to use distutils.log [WIP] bpo-43425: Update setup.py not to use distutils.log Jul 1, 2021
@corona10 corona10 force-pushed the corona10:bpo-43425-setup branch from ef436a8 to ba1fd1f Jul 1, 2021
@corona10 corona10 changed the title [WIP] bpo-43425: Update setup.py not to use distutils.log bpo-43425: Update setup.py not to use distutils.log Jul 1, 2021
@corona10 corona10 force-pushed the corona10:bpo-43425-setup branch 2 times, most recently from 1709cb3 to b1ea241 Jul 1, 2021
@@ -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}')

This comment has been minimized.

@vstinner

vstinner Jul 1, 2021
Member

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

This comment has been minimized.

@corona10

corona10 Jul 1, 2021
Author Member

Thank's nice catch :)

@corona10 corona10 changed the title bpo-43425: Update setup.py not to use distutils.log [WIP] bpo-43425: Update setup.py not to use distutils.log Jul 1, 2021
@corona10 corona10 force-pushed the corona10:bpo-43425-setup branch from 529f307 to 7e2ffe7 Jul 1, 2021
@corona10 corona10 changed the title [WIP] bpo-43425: Update setup.py not to use distutils.log bpo-43425: Update setup.py not to use distutils.log Jul 1, 2021
Copy link
Member

@vstinner vstinner left a comment

LGTM.

Ok, this time I can ready "renaming ..." logs ;-)

@corona10 corona10 merged commit a7e251b into python:main Jul 2, 2021
12 checks passed
12 checks passed
@github-actions
Check for source changes
Details
@github-actions
Check if generated files are up to date
Details
@github-actions
Windows (x86)
Details
@github-actions
Windows (x64)
Details
@github-actions
macOS
Details
@github-actions
Ubuntu
Details
@github-actions
Ubuntu SSL tests with OpenSSL
Details
@github-actions
Address sanitizer Address sanitizer
Details
Azure Pipelines PR #20210701.15 succeeded
Details
@travis-ci
Travis CI - Pull Request Build Passed
Details
@bedevere-bot
bedevere/issue-number Issue number 43425 found
Details
@bedevere-bot
bedevere/news "skip news" label found
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 2, 2021

Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

miss-islington added a commit to miss-islington/cpython that referenced this pull request Jul 2, 2021
(cherry picked from commit a7e251b)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 2, 2021

GH-26986 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit that referenced this pull request Jul 2, 2021
(cherry picked from commit a7e251b)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants