matrix-org / matrix-org/python-signedjson
pip install of synapse with a custom package mirror fails if setuptools_scm not already installed
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 13
- 分支
- 10
- PR 合併指標
- 30 天內沒有已合併 PR
描述
when attempting to run:
venv/bin/pip install -i https://python-pypi-mirror/ synapse
on a blank virtualenv, we attempt to install the dependencies via the python-pypi-mirror, including signedjson
However, the change to setup.py to require setuptools_scm causes a failure as it attempts to download setuptools_scm directly from pypi rather than via the mirror.
This can be worked around by pip install -i https://python-pypi-mirror/ setuptools_scm in the virtualenv before installing synapse, but it would be preferred if when pip installs this as a dependency, it inherited the custom package url.
This is only a problem on new installations - existing installations will likely be fine as they already have this installed.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先從 setup.py 和 setuptools_scm 的相依性宣告開始,接著使用 issue 中所示的自訂 -i 鏡像,透過 pip 重現空白 virtualenv 中的安裝流程。當安裝 synapse 及其相依性不需要從該鏡像另外安裝 setuptools_scm 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100