aws / aws/aws-lambda-builders

Allow python_pip builder to install relative packages

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
area/workflow/python_pip maintainer/need-response stage/pr type/feature
Dominant language
Python
Stars
380
Forks
161
Avg merge
1d 1h
Merged PRs (30d)
2

Description

**Description:**
It is helpful for applications to sometimes structure themselves as multiple, separate packages. `sam build` currently can't require those local packages because the pip subprocess is run outside of the requirements.txt's directory.

**Steps to reproduce the issue:**
1. Init a sam project. Create a sub-package `mypackage` with its own setup.py.
2. Add `./mypackages` to your requriements.txt
3. Run `sam build`

**Observed result:**
Sam cannot find the local package `./mypackage`

Note: this does work currently when `sam build --use-container`

**Expected result:**
Sam would find, and install the local package `./mypackage`, regardless of building in a container or not.

**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.