Allow python_pip builder to install relative packages
- Lingua principale
- Python
- Stelle
- 380
- Fork
- 161
- Merge medio
- 1g 1h
- PR unite (30g)
- 2
Descrizione
**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)**
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Parti dal builder python_pip e traccia il modo in cui viene invocato il sottoprocesso pip durante sam build, confrontando i percorsi local e --use-container. Riproduci il problema con una voce di requirements.txt come ./mypackage e un pacchetto locale con setup.py. Il lavoro è completato quando il pacchetto relativo viene installato correttamente in entrambe le modalità di build.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100