Skip to content

Commit bc7d528

Browse files
committed
Merge pull request nficano#8 from dhararon/master
Installing custom packages
2 parents 54a24ba + 94ae841 commit bc7d528

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

aws_lambda/aws_lambda.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,13 @@ def pip_install_to_target(path, local_package=None):
203203
"""
204204
print('Gathering pip packages')
205205
for r in pip.operations.freeze.freeze():
206-
if r.startswith('Python==') or r.startswith('-e git+git'):
206+
if r.startswith('Python=='):
207207
# For some reason Python is coming up in pip freeze.
208208
continue
209+
elif r.startswith('-e '):
210+
r = r.replace('-e ','')
211+
212+
print('Installing {package}'.format(package=r))
209213
pip.main(['install', r, '-t', path, '--ignore-installed'])
210214

211215
if local_package is not None:

0 commit comments

Comments
 (0)