Replies: 1 comment 2 replies
|
Nevermind about this, I thought |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sure! Here’s a more streamlined and clear version of the question:
Hi everyone!
I'm new to Pants and really enjoying it. I've set up my application, which has two main directories:
appsandlibs. Here’s the structure:My
pyproject.tomlfile looks like this:My root
BUILDfile (located at the root of the repo) is:The
BUILDfile forapps/apiis:The
BUILDfile forlibs/loggingis:The Issue:
When I run
pants run apps/api:dev, everything works fine, and my server starts without any issues. However, when I try to package it for distribution usingpants package apps/api:prod, it builds a file underdist, but runningpython dist/apps.api/prod.pexresults in the following error:It seems like PEX can't resolve the
logurudependency, which is only used inlibs/logging. What am I missing? How can I ensure all dependencies are correctly packaged?Thanks in advance for your help!
All reactions