<@U01JVDKASAC> <@U01MV4U2EV9> I noticed problem w...
# guide
k
@Frank @thdxr I noticed problem with the documented custom configuration for Python functions https://github.com/serverless-stack/serverless-stack/blob/master/packages/resources/src/Function.ts#L471-L491 Pip seems to expect not just the indexes, but also a command
Lookcing at your dockerfile
node_modules/@serverless-stack/core/assets/python/Dockerfile.dependencies
I added the extra parameters
-r requirements.txt -t .
and the bundling worked as expected then
I didn't test how to use an extra-index-url for
pipenv
or
poetry
Those might need extra handling / testing. Potentially, some way to ma p in an extra pip.conf file might perhaps be an alternative to consider
f
Hey @Klaus, thanks for pointing it out. Updated the doc.
The Python bundling options is very very basic at the moment. as none of us on team have in-depth python knowledge 😅
Most of what’s there are adopted from CDK’s python function and suggested by the community.