loud-spring-35539
04/13/2023, 5:38 PMpex_binary
target is not adding any of my actual code (other than <http://init.to|init__.py) to> the pex file. Any tips on debugging this?curved-television-6568
04/13/2023, 5:48 PMpants dependencies path/to/pex:target
to see what dependencies you have, and also for the entry point/main script of your pex target.refined-addition-53644
04/13/2023, 5:50 PMpex_binary
# BUILD
python_sources(name="sources")
# Explicit dependency on `:sources` from above
pex_binary(
name="service",
entry_point="awslambdaric",
dependencies=["3rdparty/python:default#awslambdaric", ":sources"],
)
loud-spring-35539
04/13/2023, 5:52 PMrefined-addition-53644
04/13/2023, 5:54 PMentry_point="awslambdaric"
is not an entry point which depends on your python sources and hence pants can’t infer the dependency on source code automatically.