setuptools_rust should not be a runtime dep
See original GitHub issueDescription
This is a build time dep and not a runtime dep. At startup synapse should not check for this anymore.
Steps to reproduce
try to start synapse without setuptools_rust installed.
Homeserver
another home server
Synapse Version
1.68.0
Installation Method
Other (please mention below)
Platform
openSUSE Tumbleweed rpm
Relevant log output
Sep 28 03:06:30 tengu matrix-synapse[4251]: ERROR:root:Synapse 1.68.0 needs setuptools_rust, but it is not installed
Sep 28 03:06:30 tengu matrix-synapse[4251]: Missing Requirements: "setuptools_rust"
Sep 28 03:06:30 tengu matrix-synapse[4251]: To install run:
Sep 28 03:06:30 tengu matrix-synapse[4251]: pip install --upgrade --force "setuptools_rust"
Anything else that would be useful to know?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
poetry install does not honor build-system.requires #6154
Running poetry build with the above pyproject.toml does the right ... setuptools_rust should not be a runtime dep matrix-org/synapse#13926.
Read more >1906490 – Review Request: python-setuptools-rust
I see imports from setuptools in the code, so it seems likely that it's actually a dependency at runtime. Probably "setuptools>=46.1" should ......
Read more >Dependencies Management in Setuptools
When your project is installed (e.g., using pip), all of the dependencies not already installed will be located (via PyPI), downloaded, built (if...
Read more >Failed to install Python Cryptography package with PIP and ...
I had a similar issue, and found I was simply missing a dependency (libssl-dev, for me).
Read more >distutils-r1 — standard Python build systems
Runtime dependencies are enforced only when starting installed programs via entry points. In other cases, dependencies are listed in additional files named e.g. ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would like to once again declare that I hate Python packaging.
It’s difficult to say without knowing how the openSUSE Tumbleweed rpm is built. You could comment out this line for the time being.
https://github.com/matrix-org/synapse/blob/bf9d549e3ad944e1e53a2ecc898640d690bf1eac/synapse/util/check_dependencies.py#L197