about summary refs log tree commit diff
path: root/setup.py
diff options
context:
space:
mode:
authorThomas Järvstrand <tjarvstrand@gmail.com>2017-04-22T19·34+0200
committerMatthew Garrett <mjg59-github@srcf.ucam.org>2017-04-22T19·34-0700
commit4f03ffb963d65b65e2d80b5fdcf24b2f02d13e14 (patch)
tree667934c82f2bb662d38ac0578c39519b71b96bb0 /setup.py
parent7a852b20840aab131ba59aaf85f5e67831b7ccc3 (diff)
Add support for pure python AES implementation (#78)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index a09222a0ce6a..912cd301ac34 100644
--- a/setup.py
+++ b/setup.py
@@ -6,19 +6,23 @@ from setuptools import setup, find_packages
 import sys
 import warnings
 
-dynamic_requires = []
+try:
+    import pyaes
+    dynamic_requires = ["pyaes==1.6.0"]
+except ImportError, e:
+    dynamic_requires = ['pycrypto==2.6.1']
 
 version = 0.3
 
 setup(
     name='broadlink',
-    version=0.3,
+    version=0.4,
     author='Matthew Garrett',
     author_email='mjg59@srcf.ucam.org',
     url='http://github.com/mjg59/python-broadlink',
     packages=find_packages(),
     scripts=[],
-    install_requires=['pycrypto==2.6.1'],
+    install_requires=dynamic_requires,
     description='Python API for controlling Broadlink IR controllers',
     classifiers=[
         'Development Status :: 4 - Beta',