Skip to content

[Warning] Replace distutils.spawn.find_executable with shutil.which #3028

Closed

Description

@santigandolfo

The package distutils is deprecated and slated for removal in Python 3.12. We are using the function find_executable that belongs to that package. We should instead be using which from the package shutil.

Therefore we should make the change from
from distutils.spawn import find_executable
to
from shutil import which

from distutils.spawn import find_executable

And the change from
if find_executable("docker-compose") is None:
to
if which("docker-compose") is None:

if find_executable("docker-compose") is None:

Activity

  1. added
    dependencies
    on Sep 21, 2023
  2. lorenzwalthert commented on Oct 4, 2024

    @lorenzwalthert

    I think this can be considered closed with #4837 @santigandolfo?

  3. erickb336 commented on Dec 5, 2024

    @erickb336
    Contributor

    This is resolved as of this PR - #4837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions welcomedependencies

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions