https://pantsbuild.org/ logo
#general
Title
# general
c

creamy-truck-92790

09/19/2022, 8:41 AM
Hello. I have the following issue: I have a monorepo where the pex_binary includes a manage.py (django) and includes a dependency in the same path. Since the dependency includes the absolute path to this dependency, the pex has a different "root" path. Hence the dependency cannot be found, since the path to this dependency starts at root and not in the same folder as the manage.py (I hope that makes sense what I am saying). Is there a way to tell the pex binary and its dependencies to only look at the dependencies from this relative place? Otherwise I get the error:
Note that only Django core commands are listed as settings are not properly configured (error: No module named 'test_config').
Even though
./pants depedencies ::
shows that test_config is included, just as
backend/test_config/
.
1
Nevermind - Found it. The problem was the source root_patterns which defaults did not align with mine.
1
5 Views