https://pantsbuild.org/ logo
#general
Title
# general
p

proud-dentist-22844

07/19/2022, 8:48 PM
I’m looking at adding pants to a little project to manage linting, building wheels, etc for me. I’d like to use the setuptools via a PEP 517 build backend instead of using a generated setup.py. https://www.pantsbuild.org/docs/python-distributions#background-setuptools-and-pep-517 So, are there any examples of something like this? I’m wondering what metadata should go in BUILD
python_distribution
, vs in
[project]
in the
pyproject.toml
file. Does pants read anything out of the
[project]
table or just out of the
[build-system]
table? edit: a quick code-search suggests pants only uses
[build-system]
Or would it be better to skip
[project]
and keep everything in the BUILD file? If pants is not generating the setup.py, then how does that information get to the PEP 517 build-backend?
2 Views