| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Replace deprecated distutils.spawn.find_executable() with shutil.which() in missing_compiler_executable() of test.support.
|
test_peg_generator fails with DeprecationWarning. Example: https://buildbot.python.org/#/builders/64/builds/9220 ERROR: test_c_parser (test.test_peg_generator.test_c_parser.TestCParser.test_c_parser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto/build/Lib/test/test_peg_generator/test_c_parser.py", line 113, in setUp
cmd = support.missing_compiler_executable()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto/build/Lib/test/support/__init__.py", line 1963, in missing_compiler_executable
if spawn.find_executable(cmd[0]) is None:
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64.lto/build/build/test_python_626928æ/tempcwd/venv/lib/python3.14/site-packages/setuptools/_distutils/spawn.py", line 104, in find_executable
warnings.warn(
~~~~~~~~~~~~~^
'Use shutil.which instead of find_executable', DeprecationWarning, stacklevel=2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
DeprecationWarning: Use shutil.which instead of find_executable
|
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
…ythonGH-132906) Replace deprecated distutils.spawn.find_executable() with shutil.which() in missing_compiler_executable() of test.support. (cherry picked from commit de6482e) Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-132916 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…GH-132906) (#132916) gh-132415: Use shutil.which() in missing_compiler_executable() (GH-132906) Replace deprecated distutils.spawn.find_executable() with shutil.which() in missing_compiler_executable() of test.support. (cherry picked from commit de6482e) Co-authored-by: Victor Stinner <vstinner@python.org>
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.9 due to a conflict. cherry_picker de6482eda3a46cc9c9a03fb9ba57295ab99b4722 3.9 |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.10 due to a conflict. cherry_picker de6482eda3a46cc9c9a03fb9ba57295ab99b4722 3.10 |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to 3.11 due to a conflict. cherry_picker de6482eda3a46cc9c9a03fb9ba57295ab99b4722 3.11 |
Sorry, something went wrong.
…ythonGH-132906) Replace deprecated distutils.spawn.find_executable() with shutil.which() in missing_compiler_executable() of test.support. (cherry picked from commit de6482e) Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-135392 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
Actually nevermind the backports to 3.9 - 3.11, distutils is still there. |
Sorry, something went wrong.
…GH-132906) (GH-135392) Replace deprecated distutils.spawn.find_executable() with shutil.which() in missing_compiler_executable() of test.support. (cherry picked from commit de6482e) Co-authored-by: Victor Stinner <vstinner@python.org>
| Back | FazBrowse Home | New Git URL |
Replace deprecated distutils.spawn.find_executable() with shutil.which() in missing_compiler_executable() of test.support.