Skip to content

Allow python_pip builder to install relative packages #152

@sbbowers

Description

@sbbowers

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions