polite-angle-19513
08/06/2021, 9:45 PMhundreds-father-404
08/06/2021, 11:06 PM./pants list ::
to see all targets in your project, including what is created by the macro
• ./pants dependencies --transitive path/to:python_distribution_tgt
to see what will get included in it
I suspect what's happening is botocore
is a transitive dep of boto3
and it's not being imported directly? That would be confirmed by it not showing up in dependencies
output. If that's the case, and you still want the dep in your generated wheel, you can explicitly add //:botocore
to the dependencies
field of the python_distribution
polite-angle-19513
08/09/2021, 11:51 AMpolite-angle-19513
08/09/2021, 11:52 AMpolite-angle-19513
08/09/2021, 11:55 AMpolite-angle-19513
08/09/2021, 11:55 AMpolite-angle-19513
08/09/2021, 11:56 AMhundreds-father-404
08/12/2021, 11:02 PMpython_requirement_library
targets for botocore
, which you can see when running ./pants list ::
But, that is not being seen as a "direct dependency" of your code because I imagine you're not importing it? You can force it to be a direct dep by adding to the dependencies
field of whatever python_library
is using it, Something like:
python_library(dependencies=['src/python/hank_ai_aws:botocore'])