aws / aws/aws-lambda-builders

Allow python_pip builder to install relative packages

Offen
#152 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area/workflow/python_pip maintainer/need-response stage/pr type/feature
Vorherrschende Sprache
Python
Sterne
380
Forks
161
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
2

Beschreibung

**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)**

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie beim python_pip-Builder und verfolgen Sie, wie der pip-Subprozess während sam build aufgerufen wird, wobei Sie die lokalen und die --use-container-Pfade vergleichen. Reproduzieren Sie das Problem mit einem requirements.txt-Eintrag wie ./mypackage und einem lokalen setup.py-Paket. Die Aufgabe ist abgeschlossen, wenn das relative Paket in beiden Build-Modi erfolgreich installiert wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, python
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.