Remove dependency on setuptools
envgap__googleapis__python-aiplatform-2931
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
c00219f3d71c97572ca81b7665fb0fb6de749b56- Manifest
setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
googleapis/python-aiplatform #2931 · read the original issue
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.
https://github.com/googleapis/python-aiplatform/blob/755c3f99478e537ef5675ed7120a17eaf94ee5cd/setup.py#L186
- 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`
https://github.com/googleapis/python-aiplatform/blob/dcb62051a7f3aeaa009b64165569c788d8c5ec44/google/cloud/aiplatform/utils/prediction_utils.py#L18
- 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`
https://github.com/googleapis/python-aiplatform/blob/dcb62051a7f3aeaa009b64165569c788d8c5ec44/google/cloud/aiplatform/initializer.py#L424-L426
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]