Skip to content

Using build to build a PDM project #440

Answered by pawamoy
pawamoy asked this question in Q&A
Discussion options

pawamoy
May 4, 2021
Maintainer Sponsor

You must be logged in to vote

Definitely possible!
The pyproject-build tool expects the directory containing pyproject.toml as a positional argument. It defaults to . so you can instead run it without any arguments:

pyproject-build

Next, for namespace packages (and it has nothing to do with build but rather PDM and pdm.pep517), I had to explicitely include the namespace package with

[tool.pdm]
includes = ["src/namespace"]

because this was not enough:

[tool.pdm]
package-dir= "src"

Replies: 2 comments 9 replies

Comment options

pawamoy
May 4, 2021
Maintainer Author Sponsor

You must be logged in to vote
4 replies
@pawamoy
Comment options

pawamoy May 4, 2021
Maintainer Author Sponsor

@pawamoy
Comment options

pawamoy May 4, 2021
Maintainer Author Sponsor

@pawamoy
Comment options

pawamoy May 4, 2021
Maintainer Author Sponsor

@pawamoy
Comment options

pawamoy May 4, 2021
Maintainer Author Sponsor

Comment options

pawamoy
May 4, 2021
Maintainer Author Sponsor

You must be logged in to vote
5 replies
@frostming
Comment options

@pawamoy
Comment options

pawamoy May 4, 2021
Maintainer Author Sponsor

@frostming
Comment options

@frostming
Comment options

@pawamoy
Comment options

pawamoy May 4, 2021
Maintainer Author Sponsor

Answer selected by pawamoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants