From 2da16b239de65a6a7a8338736c7b723c5d4bd097 Mon Sep 17 00:00:00 2001 From: Daniel Toyama Date: Fri, 7 Jul 2023 09:21:50 -0700 Subject: [PATCH] Replace `distutils.cmd.Command` with `setuptools.Command`. `distutils` has long been deprecated in favor of `setuptools`. This change simply replaces its use with an equivalent one from `setuptools`. PiperOrigin-RevId: 546301078 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c61ba47..21c08a0 100644 --- a/setup.py +++ b/setup.py @@ -14,10 +14,10 @@ """Simple package definition for using with `pip`.""" -from distutils import cmd import os import pkg_resources +import setuptools from setuptools import find_packages from setuptools import setup from setuptools.command.build_ext import build_ext @@ -45,7 +45,7 @@ ] -class _GenerateProtoFiles(cmd.Command): +class _GenerateProtoFiles(setuptools.Command): """Command to generate protobuf bindings for AndroidEnv protos.""" descriptions = 'Generates Python protobuf bindings for AndroidEnv protos.'