pdm build
may error out since the dist/ directory doesn't exist
#1647
Labels
🐛 bug
Something isn't working
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.
The text was updated successfully, but these errors were encountered: