﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33778	"pyproject.toml uses the incorrect ""legacy"" setuptools backend and unnecessary wheel dep"	Michał Górny	badziyoussef	"The pyproject.toml file lists the following:

{{{
[build-system]
requires = ['setuptools>=40.8.0', 'wheel']
build-backend = 'setuptools.build_meta:__legacy__'
}}}

The wheel dependency is redundant and discouraged here. Setuptools adds this dependency via the backend automatically since day one. It was historically included in the documentation but it was a mistake. See: https://github.com/pypa/setuptools/commit/f7d30a9529378cf69054b5176249e5457aaf640a

The legacy backend was never supposed to be used in pyproject.toml. It is only an ""internal"" fallback that is used by tools like pip when pyproject.toml is not present at all. The regular backend must always be used in pyproject.toml. See: https://github.com/pypa/setuptools/issues/1689"	Bug	closed	Packaging	4.0	Normal	fixed		Florian Apolloner Nick Pope	Ready for checkin	1	0	0	0	1	0
