matrix-org / matrix-org/python-signedjson
pip install of synapse with a custom package mirror fails if setuptools_scm not already installed
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py and the dependency declaration for setuptools_scm, then reproduce the blank-virtualenv install using pip with the custom -i mirror shown in the issue. Done means installing synapse and its dependencies does not require a separate setuptools_scm installation from the mirror.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100