You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to build using pdm build (my preferred frontend b/c in my setup python -m build behaves weirdly in ways that don't matter here), I get:
William@DESKTOP-3H1DSBV MINGW64 ~/Projects/python/wasmtime-py
$ pdm build
[ProjectError]: tool.pdm.distribution must be `true` to be built.
Indeed, according to the pdmsource, a project is unconditionally not a distribution if I don't set the name.
Of course I can just set a name, but it made me curious. From what I understand, the only mandatory part of pyproject.toml that needs to be set is to point the build frontend (pdm build) to a build backend. Is there a technical reason why I need to set the name for pdm build when it'll delegate to setuptools, which presumably uses the already-existing name (plus the rest of the config) in setup.py?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a
pyproject.toml
to a project. I want to add a minimally-invasive one:When I try to build using
pdm build
(my preferred frontend b/c in my setuppython -m build
behaves weirdly in ways that don't matter here), I get:Indeed, according to the
pdm
source, a project is unconditionally not a distribution if I don't set the name.Of course I can just set a name, but it made me curious. From what I understand, the only mandatory part of
pyproject.toml
that needs to be set is to point the build frontend (pdm build
) to a build backend. Is there a technical reason why I need to set thename
forpdm build
when it'll delegate tosetuptools
, which presumably uses the already-existing name (plus the rest of the config) insetup.py
?Beta Was this translation helpful? Give feedback.
All reactions