This MR is a first draft at an alternative generic PEP517 builder plugin for pybuild.
Over in !20 (closed), the approach is to:
PYTHONPATH
debian/tmp
That approach has the problem of not having scripts or entrypoints available at the testing stage.As an alternative approach that feels more like the current setuptools approach that we are more familiar with is given here:
debian/tmp
Just like MR!20, this plugin needs:
pyproject.toml
This plugin was able to build a trivial PEP517 (setuptools backend) package pep517-sample
This approach has been tested with multiple supported python3 interpreters using the current python3.9/3.10 combination in experimental and worked fine. It doesn't suffer from the three problems listed as "Unresolved issues" in !20 (closed) (but no doubt there are other things to consider!)
Comments, suggestions and competing proposals that make PEP517 compliant building with pybuild Just Work gratefully accepted.