WARNING: setup.py install is deprecated when using build
#3422
-
When I upgraded
The funny thing is that I'm using What I'm actually worried about is this: We already use from setuptools import setup
from setuptools.command.build import build
class CustomBuild(build):
# build_grpc command is provided in another package and hooked via distutils.command entry point
sub_commands = [('build_grpc', None)] + build.sub_commands
setup(cmdclass={'build': CustomBuild}) We also have other custom build steps in other packages, not just gRPC. So, my question is: will this be supported even after Btw. I would very much appreciate to customize |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @stinovlas thank you very much for opening this discussion.
If you already have a
Yes, there is no currently plan to deprecate the existence of the
Yes, any usage of
The approach you shared (adding build steps via
I think we, as a community, need to think about a good design to make this happen. There are a few discussions already going on about this (e.g. #2899), but I don't feel like we have consensus yet. Once we reach consensus on how we want the interface to look/work, we can go ahead and implement it. Currently, there is a under-documented feature that allow some implementation of |
Beta Was this translation helpful? Give feedback.
Hi @stinovlas thank you very much for opening this discussion.
If you already have a
pyproject.toml
with abuild-backend = "setuptools.build_meta"
, I suspect that the warn happens because of an old version ofvirtualenv
/venv
being used to install setuptools (but I cannot be sure without seeing a reproduction)... Maybe updating the installations ofbuild[virtualenv]
andvirtualenv
in you environment would solve that?Yes, there is no currently plan to deprecate the existence of the
setup.py
file. What is actually deprecated is the…