Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 318245e

Browse files
authored
Do not install setuptools 50.0. (#8212)
This is due to compatibility issues with old Python versions.
1 parent aa07c37 commit 318245e

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mkdir -p ~/synapse
7373
virtualenv -p python3 ~/synapse/env
7474
source ~/synapse/env/bin/activate
7575
pip install --upgrade pip
76-
pip install --upgrade setuptools
76+
pip install --upgrade setuptools!=50.0 # setuptools==50.0 fails on some older Python versions
7777
pip install matrix-synapse
7878
```
7979

changelog.d/8212.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not install setuptools 50.0. It can lead to a broken configuration on some older Python versions.

synapse/python_dependencies.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
"Jinja2>=2.9",
7575
"bleach>=1.4.3",
7676
"typing-extensions>=3.7.4",
77+
# setuptools is required by a variety of dependencies, unfortunately version
78+
# 50.0 is incompatible with older Python versions, see
79+
# https://github.com/pypa/setuptools/issues/2352
80+
"setuptools!=50.0",
7781
]
7882

7983
CONDITIONAL_REQUIREMENTS = {

0 commit comments

Comments
 (0)