Skip to content

Commit 0cb1adf

Browse files
akiymrix0rrr
authored andcommitted
fix(s3-deployment): bundle modules correctly (#1154)
--prefix never install modules which install into system python and these modules won't include in bundle.zip, so ignore whether or not modules already installed.
1 parent ed14638 commit 0cb1adf

File tree

1 file changed

+1
-1
lines changed
  • packages/@aws-cdk/aws-s3-deployment/lambda

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-s3-deployment/lambda/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd ${staging}
2727
# install python requirements
2828
# Must use --prefix to because --target cannot be used on
2929
# platforms that have a default --prefix set.
30-
pip3 install --prefix ${piptemp} -r ${staging}/requirements.txt
30+
pip3 install --ignore-installed --prefix ${piptemp} -r ${staging}/requirements.txt
3131
mv ${piptemp}/lib/python*/site-packages/* .
3232

3333
# create archive

0 commit comments

Comments
 (0)