mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 14:32:30 +01:00
Fix packaging
This commit is contained in:
parent
ec0596f2ab
commit
128d5948c4
1 changed files with 4 additions and 2 deletions
|
@ -20,8 +20,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from synapse.util.patch_inline_callbacks import do_patch
|
|
||||||
|
|
||||||
# Check that we're not running on an unsupported Python version.
|
# Check that we're not running on an unsupported Python version.
|
||||||
if sys.version_info < (3, 5):
|
if sys.version_info < (3, 5):
|
||||||
print("Synapse requires Python 3.5 or above.")
|
print("Synapse requires Python 3.5 or above.")
|
||||||
|
@ -41,4 +39,8 @@ except ImportError:
|
||||||
__version__ = "1.4.0"
|
__version__ = "1.4.0"
|
||||||
|
|
||||||
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
|
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
|
||||||
|
# We import here so that we don't have to install a bunch of deps when
|
||||||
|
# running the packaging tox test.
|
||||||
|
from synapse.util.patch_inline_callbacks import do_patch
|
||||||
|
|
||||||
do_patch()
|
do_patch()
|
||||||
|
|
Loading…
Reference in a new issue