jelmer / setuptools-protobuf

protobuf support for setuptools
Apache License 2.0
14 stars 5 forks source link

SetuptoolsDeprecationWarning: Direct usage of `distutils` commands #18

Closed dseomn closed 1 year ago

dseomn commented 1 year ago

When I run python3 setup.py build on a project using setuptools-protobuf, I get this warning now:

running build
/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:130: SetuptoolsDeprecationWarning: Direct usage of `distutils` commands
!!

        ********************************************************************************
        It seems that you are using `distutils.command.build` to add
        new subcommands. Using `distutils` directly is considered deprecated,
        please use `setuptools.command.build`.

        By 2023-Dec-13, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://peps.python.org/pep-0632/ for details.
        ********************************************************************************

!!
  for cmd_name in self.get_sub_commands():
running build_protobuf
running build_py

Relevant versions of the Debian packages:

python3-setuptools 68.1.2-1
python3-setuptools-protobuf 0.1.9-1