Skip to content

Remove dependency on setuptools #2931

@parthea

Description

@parthea

We should consider removing setuptools as a dependency and drop usage of distutils and pkg_resources to align with other google-cloud-* python packages where setuptools is not declared as a dependency.

"setuptools; python_version >= '3.12'",

  • For distutils,
    Aside from tests, distutils is only needed in google/cloud/aiplatform/utils/prediction_utils.py. We could migrate from distutils.dir_util to shutil.copytree

  • For pkg_resources,
    Aside from tests, pkg_resources is only needed in google/cloud/aiplatform/initializer.py. We could migrate to use google.cloud.aiplatform.__version__ instead of pkg_resources.get_distribution("google-cloud-aiplatform").version

    gapic_version = pkg_resources.get_distribution(
    "google-cloud-aiplatform",
    ).version

Metadata

Metadata

Assignees

Labels

api: vertex-aiIssues related to the googleapis/python-aiplatform API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions