Skip to content

Commit

Permalink
chore(s3-deployment): explicitly pass --no-user to pip3 install (#8487
Browse files Browse the repository at this point in the history
)

Otherwise, the build fails in some environments
(for example, Gitpod) with the error:

    ERROR: Can not combine '--user' and '--prefix' as they imply different installation locations

Fixes #8102

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
skinny85 authored Jun 11, 2020
1 parent 9a00a42 commit 36241d1
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 --ignore-installed --prefix ${piptemp} -r ${staging}/requirements.txt
pip3 install --ignore-installed --prefix ${piptemp} --no-user -r ${staging}/requirements.txt
mv ${piptemp}/lib/python*/*-packages/* .
[ -d ${piptemp}/lib64 ] && mv ${piptemp}/lib64/python*/*-packages/* .
rm -fr ./awscli/examples
Expand Down

0 comments on commit 36241d1

Please sign in to comment.