Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
setup.py: Make the typing module a requirement only for old python ve…
Browse files Browse the repository at this point in the history
…rsions.

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.
  • Loading branch information
poljar committed Jan 15, 2019
1 parent b4c8af1 commit 05da9d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,3 +1,3 @@
future
cffi
typing
typing; python_version < '3.5'
6 changes: 5 additions & 1 deletion setup.py
Expand Up @@ -22,6 +22,10 @@
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
)

0 comments on commit 05da9d9

Please sign in to comment.