about summary refs log tree commit diff
path: root/setup.py
diff options
context:
space:
mode:
authorDaniel Høyer Iversen <mail@dahoiv.net>2019-05-27T18·57+0200
committerGitHub <noreply@github.com>2019-05-27T18·57+0200
commit38a40c5a19c05039e5c92ced1f553971ccd70d9e (patch)
treefc608f18453cae17c40ebfd51f86b13bd993bab9 /setup.py
parent45e26fda237441777d76f5b7362c84ce9f757c89 (diff)
Use cryptography instead of pycryptodome (#246)
* Use cryptography instad of pycryptodome

* Use cryptography instad of pycryptodome
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 00169f44619a..0a31dbbb07e1 100644
--- a/setup.py
+++ b/setup.py
@@ -2,15 +2,16 @@
 # -*- coding: utf-8 -*-
 
 import re
-from setuptools import setup, find_packages
 import sys
 import warnings
 
+from setuptools import setup, find_packages
+
 try:
-    import pyaes
+    import cryptography
+    dynamic_requires = ['cryptography>=2.1.1']
+except ImportError:
     dynamic_requires = ["pyaes==1.6.0"]
-except ImportError as e:
-    dynamic_requires = ['pycryptodome==3.6.6']
 
 # For Hysen thermostatic heating controller
 dynamic_requires.append('PyCRC')