Allow python_pip builder to install relative packages
- 主要言語
- Python
- スター
- 381
- フォーク
- 162
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 2
説明
**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)**
コントリビューションガイド
調査の方向性
python_pip builder から開始し、sam build 中に pip サブプロセスがどのように呼び出されるかを追跡し、local パスと --use-container パスを比較します。./mypackage のような requirements.txt エントリと、ローカルの setup.py パッケージを使って問題を再現します。両方の build モードで相対パッケージが正常にインストールされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, python
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100