Skip to content

pdm build may error out since the dist/ directory doesn't exist #1647

@eli-schwartz

Description

@eli-schwartz

See e.g. mesonbuild/meson-python#273

Here's an example project: https://github.com/pyOpenSci/examplePy/tree/main/example6_pdm_meson

It uses pdm as a project manager, but meson-python as the pep517 compliant build backend. mkdir dist/ && pdm build --no-clean works. Remove the --no-clean flag and it fails.

PEP 517 doesn't say whose responsibility it is to create the sdist_directory / wheel_directory. Some frontends, such as build, create it for you. PDM doesn't, apparently. Also, some backends do create it for you, I guess (I have not researched this, I assume pdm-backend does because it's presumably frequently used with PDM, and one of the two must create it).

IMHO the only viable solution here is for both backends and frontends to create that directory, because they cannot rely on the other doing it. So PDM should start to create that directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions