in python/rpdk/python/codegen.py [0:0]
def _pip_build(cls, base_path):
command = cls._make_pip_command(base_path)
LOG.debug("command is '%s'", command)
LOG.warning("Starting pip build.")
try:
completed_proc = subprocess_run( # nosec
command, stdout=PIPE, stderr=PIPE, cwd=base_path, check=True
)
except (FileNotFoundError, CalledProcessError) as e:
raise DownstreamError("pip build failed") from e
LOG.debug("--- pip stdout:\n%s", completed_proc.stdout)
LOG.debug("--- pip stderr:\n%s", completed_proc.stderr)