Replies: 2 comments 2 replies
-
Hi, with your source tree, it seems a source root of Edit: sorry, I missed the |
Beta Was this translation helpful? Give feedback.
-
Pants can't work with your layout because there are no "correct" source roots in it, and the code is unusable from source (since imports will fail), and you have to pip install it locally to use it. Pants exists precisely so you don't have to do that sort of thing... Why is this desirable for your use case? |
Beta Was this translation helpful? Give feedback.
-
Hello, my team has a python apps monorepo that looks like:
For each of these libs and apps, we want to include them in a namespace. For example,
umbrella/apps/app1/setup.py
containswhich allows us to
pip install apps/app1
independently and thenimport umbrella.apps.app1
.Is this kind of namespace prefixing supported with source roots in Pants?
Beta Was this translation helpful? Give feedback.
All reactions