Skip to content

How to manage and publish multiple libraries that might depend on each other #256

Answered by DavidVujic
inoc603 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @inoc603!

If you are going to publish libraries from your Polylith repo, you might want to look into the code-generation features of the build-project command (i.e. --with-top-namespace). This is useful if a user app will install more than one library originated from the monorepo. This, because they share the same top namespace and since Python installs libraries in a shared & flat structure it might cause unwanted problems (such as when uninstalling or updating one of those packages).

If I understand your question about lib1 and lib2: if the second library depends on the first one I think it makes sense to include it. Otherwise the second library would be broken, right?

An alternative…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DavidVujic
Comment options

@inoc603
Comment options

@DavidVujic
Comment options

@DavidVujic
Comment options

@inoc603
Comment options

Answer selected by inoc603
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