aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2018-11-28 14:54:08 +0100
committerHubert Chathi <hubert@uhoreg.ca>2019-04-08 15:04:32 -0400
commit0883a922ff39981e27cff7e677a6f79a5f324fab (patch)
treed31473a96ed214e7d503064c90b2f447a613db90
parentad024b334751a905eb7e3dd33f83835ecdb84ae8 (diff)
python: Make the typing module a requirement only for old python versions.
Typing is part of standard library from python 3.5 and from python 3.7 onwards trying to install it results in an error. This patch disables typing installation on python versions that are newer than 3.5. Signed-off-by: Damir Jelić <poljar@termina.org.uk>
-rw-r--r--python/setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/setup.py b/python/setup.py
index 4b0deb1..5742fd9 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -22,6 +22,10 @@ setup(
packages=["olm"],
setup_requires=["cffi>=1.0.0"],
cffi_modules=["olm_build.py:ffibuilder"],
- install_requires=["cffi>=1.0.0", "future", "typing"],
+ install_requires=[
+ "cffi>=1.0.0",
+ "future",
+ "typing;python_version<'3.5'"
+ ],
zip_safe=False
)