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-41282: Fix distutils.utils.byte_compile() DeprecationWarning #25406

Merged
merged 1 commit into from Apr 16, 2021

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 14, 2021

  • byte_compile() of distutils.utils no longer logs a
    DeprecationWarning
  • test_distutils no longer logs a DeprecationWarning

https://bugs.python.org/issue41282

* byte_compile() of distutils.utils no longer logs a
  DeprecationWarning
* test_distutils no longer logs a DeprecationWarning
cmd = [sys.executable]
cmd.extend(subprocess._optim_args_from_interpreter_flags())
cmd.append(f'-Wignore:{msg}:DeprecationWarning')
Copy link
Member Author

@vstinner vstinner Apr 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, -W option escapes the message using re.escape(), it's not possible to use a regex :-(

@vstinner
Copy link
Member Author

vstinner commented Apr 14, 2021

cc @tirkarthi

@vstinner vstinner merged commit 69ca32e into python:master Apr 16, 2021
11 checks passed
@vstinner vstinner deleted the fix_distutils_deprecatation_warns branch Apr 16, 2021
kreathon pushed a commit to kreathon/cpython that referenced this pull request May 2, 2021
…honGH-25406)

* byte_compile() of distutils.utils no longer logs a
  DeprecationWarning
* test_distutils no longer logs a DeprecationWarning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants