pdm-pep517 is an official plugin for PDM, the Python package manager. It acts as a PEP 517 build backend, enabling PDM projects to be built into distribution packages (sdist, wheel) using PEP 621 metadata defined in `pyproject.toml`. It is currently at version 1.1.4 and is actively maintained, with updates tied to PDM's core development and bug fixes.
pip install pdm-pep517No compatibility data collected yet for this library.
This quickstart demonstrates how to set up a project to use `pdm-pep517` as its build backend and then build it using PDM. It programmatically creates a dummy project, configures its `pyproject.toml` to use `pdm.pep517.api`, and then executes `pdm build`. Ensure PDM itself is installed in your environment before running this script.
Upgrade PDM to version 2.0.0 or newer. Recommended command: `pip install --upgrade pdm`.
Ensure your `pyproject.toml` includes `pdm-pep517` and `pdm>=2.0.0` in the `build-system.requires` list: `requires = ["pdm-pep517", "pdm>=2.0.0"]`.
Verify that your `pyproject.toml` contains `build-backend = "pdm.pep517.api"` exactly as shown in the `[build-system]` section.
Install `pdm-pep517` into your environment (`pip install pdm-pep517`). If using isolated builds (e.g., `python -m build`), ensure `pyproject.toml` has `pdm-pep517` in `build-system.requires`.
Upgrade your PDM installation to version 2.0.0 or newer by running: `pip install --upgrade pdm`.
Add a `[project]` table to your `pyproject.toml` file, including at least `name`, `version`, and `requires-python` fields.