Skip to content

Commit

Permalink
fix(s3-deployment): bundle modules correctly (#1154)
Browse files Browse the repository at this point in the history
--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.
  • Loading branch information
akiym authored and rix0rrr committed Nov 13, 2018
1 parent ed14638 commit 0cb1adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-s3-deployment/lambda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cd ${staging}
# install python requirements
# Must use --prefix to because --target cannot be used on
# platforms that have a default --prefix set.
pip3 install --prefix ${piptemp} -r ${staging}/requirements.txt
pip3 install --ignore-installed --prefix ${piptemp} -r ${staging}/requirements.txt
mv ${piptemp}/lib/python*/site-packages/* .

# create archive
Expand Down

0 comments on commit 0cb1adf

Please sign in to comment.