Description
(Note: I am packaging individually with zip: true
, and am using a branch from @felipe-augusto to deal with the issue as described in #203.)
In order to meet lambda size limitations I am using slim: true
, however I was not able to successfully run due to one my modules (Sagemaker SDK) not being able to find a dependency (in this case urllib3). What I found is that Sagemaker is using pkg_resources to pull the SDK version (below), and then pkg_resources throws an exception because it is not able to identify the distribution information since all of the dist-info files have been removed by slim.
SDK_VERSION = pkg_resources.require('sagemaker')[0].version
Setting slim: false
is not an option for me since I need that additional trimming, but there is no easy workaround since custom slim options only append to the defaults. I could create specialized packages that I trim myself, or create a branch that removes that default option. I went with the latter, but I think it would be a handy feature to allow for overriding the defaults. If defining custom slim options, it might be easier to remove the defaults altogether, and if a user wants them they can add them back in manually or use a special default
option.