Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion aws_lambda/aws_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,13 @@ def pip_install_to_target(path, local_package=None):
"""
print('Gathering pip packages')
for r in pip.operations.freeze.freeze():
if r.startswith('Python==') or r.startswith('-e git+git'):
if r.startswith('Python=='):
# For some reason Python is coming up in pip freeze.
continue
elif r.startswith('-e '):
r = r.replace('-e ','')

print('Installing {package}'.format(package=r))
pip.main(['install', r, '-t', path, '--ignore-installed'])

if local_package is not None:
Expand Down