forcemerge 959407 972368
retitle 959407 dh-python: support pyproject.toml builds (PEP 518) without setup.py
thanks

Activating the flit plugin is not sufficient to enable pyproject.toml builds.

As the pybuild man page says, "These can be identified by the presence of a
build-backend = "flit_core.buildapi" element in pyproject.toml."

flit doesn't support pyproject.toml builds in general.

If you place
  Build-Depends: python3-toml, flit
in debian/control, and
  export PYBUILD_SYSTEM=flit
in debian/rules, then if pyproject.toml does not support flit
you get the build error

     dh_auto_build -O--buildsystem=pybuild
E: pybuild pybuild:352: build: plugin flit failed with: TOML file missing [tool.flit] table. dh_auto_build: error: pybuild --build -i python{version} -p "3.9 3.8" returned exit code 13
  make: *** [debian/rules:7: build] Error 13
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to