Replies: 1 comment 2 replies
-
Nevermind about this, I thought |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
apps
andlibs
. Here’s the structure:My
pyproject.toml
file looks like this:My root
BUILD
file (located at the root of the repo) is:The
BUILD
file forapps/api
is:The
BUILD
file forlibs/logging
is: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.pex
results in the following error:It seems like PEX can't resolve the
loguru
dependency, 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!
Beta Was this translation helpful? Give feedback.
All reactions