diff options
author | Vincent Breitmoser <look@my.amazin.horse> | 2018-01-06 18:13:56 +0100 |
---|---|---|
committer | Vincent Breitmoser <look@my.amazin.horse> | 2018-04-10 11:29:52 +0200 |
commit | 89de9349815b79f55bfff53b7c8c6d43f8c30336 (patch) | |
tree | 0397dbdbc4f9c3f6258c8cd7dd2faddf8510ff75 /synapse/python_dependencies.py | |
parent | Use sortedcontainers instead of blist (diff) | |
download | synapse-89de9349815b79f55bfff53b7c8c6d43f8c30336.tar.xz |
Use psycopg2cffi module instead of psycopg2 if running on pypy
The psycopg2 package isn't available for PyPy. This commit adds a check if the runtime is PyPy, and if it is uses psycopg2cffi module in favor of psycopg2. This is almost a drop-in replacement, except for one place where an additional cast to string is required.
Diffstat (limited to 'synapse/python_dependencies.py')
0 files changed, 0 insertions, 0 deletions