2

I'm trying to build a wheel using the PDM tool, however when I build the package, external dependencies (eg semver) are not included. This means whoever uses my tool, will need to install these dependencies as well. Is there a way to package the external dependencies together with my package using PDM?

asked Aug 25, 2023 at 14:49
6
  • Are your external dependencies listed in requirement.txt ? Have you tried pdm add <dependency> (see PEP508 to format dependencies manually if you want) Commented Aug 25, 2023 at 14:58
  • The dependencies are listed in pyproject.toml and indeed i add them with pdm add however, when I do pdm build, the dist file don't contain those dependencies Commented Aug 25, 2023 at 15:40
  • Yeah it's normal, a package contain itself plus only the references for other packages. But when you try to install it, it should recursively get all dependencies Commented Aug 25, 2023 at 15:42
  • Hey @Hussam have you found a way to do it? I am in the same boat. I want my package to be self contained (excluding perhaps the Python interpreter itself). Commented Dec 10, 2024 at 15:55
  • no unfortunately, eventually the dependencies were installed by another team manually on the systems where my package is going to be used Commented Dec 13, 2024 at 10:39

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.