How do I specify binary and library project in one go? #2626
Unanswered
wizpresso-steve-cy-fan
asked this question in
Q&A
Replies: 1 comment
-
With the following layout:
You can instruct PDM to only include the [build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
package-dir = "src"
includes = ["src/public"] Could you try that and let us know if that works for you? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to do it just like Rust, where we can have a
src/lib.rs
and asrc/main.rs
, that separates the public content installable by the others (such as RPC API definition) and the private content NOT installable by the others and should be excluded (such as the implemented RPC server). Is it possible to do this in PDM? Of course maybe I can split this into multiple pyprojects, but it will be very tedious to do so (for example, I have to add anothergenerated-api
entry for monorepo setup)Beta Was this translation helpful? Give feedback.
All reactions