summary refs log tree commit diff
path: root/synapse/python_dependencies.py
diff options
context:
space:
mode:
authorJonathan de Jong <jonathan@automatia.nl>2021-02-04 14:29:47 +0100
committerGitHub <noreply@github.com>2021-02-04 08:29:47 -0500
commit2814028ce57264d9ea1e97811a727793f301ee5b (patch)
treefc9088a81c866f0333d4b8d80eaf3a79aef02401 /synapse/python_dependencies.py
parentAdd debug logging to DNS SRV requests. (#9305) (diff)
downloadsynapse-2814028ce57264d9ea1e97811a727793f301ee5b.tar.xz
Add experimental support for PyPy. (#9123)
* Adds proper dependencies.
* Minor fixes in database layer.
Diffstat (limited to 'synapse/python_dependencies.py')
-rw-r--r--synapse/python_dependencies.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py
index bfd46a3730..8a2b73b75e 100644
--- a/synapse/python_dependencies.py
+++ b/synapse/python_dependencies.py
@@ -86,8 +86,12 @@ REQUIREMENTS = [
 
 CONDITIONAL_REQUIREMENTS = {
     "matrix-synapse-ldap3": ["matrix-synapse-ldap3>=0.1"],
-    # we use execute_values with the fetch param, which arrived in psycopg 2.8.
-    "postgres": ["psycopg2>=2.8"],
+    "postgres": [
+        # we use execute_values with the fetch param, which arrived in psycopg 2.8.
+        "psycopg2>=2.8 ; platform_python_implementation != 'PyPy'",
+        "psycopg2cffi>=2.8 ; platform_python_implementation == 'PyPy'",
+        "psycopg2cffi-compat==1.1 ; platform_python_implementation == 'PyPy'",
+    ],
     # ACME support is required to provision TLS certificates from authorities
     # that use the protocol, such as Let's Encrypt.
     "acme": [