matrix-org / matrix-org/python-signedjson

pip install of synapse with a custom package mirror fails if setuptools_scm not already installed

未关闭
#8 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。