Skip to content
Open
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: 4 additions & 2 deletions src/lambda_deploy/lambda_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import zipfile
import logging
import optparse
import subprocess


from .utils import TemporaryDirectory
from .version import __version__

Expand Down Expand Up @@ -134,9 +137,8 @@ def package(self):
'-t',
temp_dir
]

# Do pip install to temporary dir
if pip.main(pip_args) == 0:
if subprocess.check_call([sys.executable,'-m','pip']+pip_args) == 0:
self.add_directory_to_zip(temp_dir, zf)
else:
if sys.platform == 'darwin':
Expand Down