Skip to content
Closed
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
4 changes: 4 additions & 0 deletions aws_lambda_builders/workflows/python_pip/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import subprocess
import logging
from email.parser import FeedParser
from os import chdir, getcwd, path


from .compat import pip_import_string
Expand Down Expand Up @@ -328,9 +329,12 @@ def _download_all_dependencies(self, requirements_filename, directory):
# the dependency graph. Return the set of all package objects
# which will serve as the master list of dependencies needed to deploy
# successfully.
orig_cwd = getcwd()
chdir(path.dirname(requirements_filename))
self._pip.download_all_dependencies(requirements_filename, directory)
deps = {Package(directory, filename) for filename
in self._osutils.get_directory_contents(directory)}
chdir(orig_cwd)
LOG.debug("Full dependency closure: %s", deps)
return deps

Expand Down