Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Allow python_pip builder to install relative packages

Open
#152 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, python
Domain
build-system

Research direction

Start at the python_pip builder and trace how the pip subprocess is invoked during sam build, comparing the local and --use-container paths. Reproduce the issue with a requirements.txt entry such as ./mypackage and a local setup.py package. Done means the relative package installs successfully in both build modes.

Written by the indexing model from the issue text.

Description

area/workflow/python_pip maintainer/need-response stage/pr type/feature

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)

Dominant language
Python
Stars
381
Forks
162
Avg merge
1d 1h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-lambda-builders

All issues in aws/aws-lambda-builders

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.