Skip to content

How to install local package #2349

Answered by pawamoy
the-sean-c asked this question in Q&A
Oct 30, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

There is no pyproject.toml in src/example_package, so no Python installation tool would know how to install it. If you want to list a local package as a dependency of your project, you can indeed use pdm add, but you have to point it at the root folder which contains pyproject.toml. Also, you don't need to add the current project as a dependency of itself! In your case I believe you can just run pdm install.

Replies: 2 comments 5 replies

Comment options

pawamoy
Oct 30, 2023
Maintainer Sponsor

You must be logged in to vote
1 reply
@the-sean-c
Comment options

Answer selected by the-sean-c
Comment options

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

pawamoy Jul 16, 2024
Maintainer Sponsor

@pawamoy
Comment options

pawamoy Jul 16, 2024
Maintainer Sponsor

@Hopsakee
Comment options

@pawamoy
Comment options

pawamoy Jul 17, 2024
Maintainer Sponsor

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