diff --git a/mqtt/__init__.py b/mqtt/__init__.py index d054385..fd7dbfd 100644 --- a/mqtt/__init__.py +++ b/mqtt/__init__.py @@ -43,7 +43,7 @@ class Mqtt(object): try: self.client.tls_set(self.ca_certs, self.certfile, self.keyfile) res = self.client.connect(self.hostname, self.port, self.keepalive) - if res == mqtt_client.MQTT_ERR_SUCCESS: + if res == mqtt_client.MQTT_ERR_SUCCESS: res = self.client.loop_start() if res != mqtt_client.MQTT_ERR_INVAL: ret = True diff --git a/setup.py b/setup.py index d1ec640..95f06e5 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ type 'python setup.py install' to install the distribution. @author: Thomas Klaehn ''' -from distutils.core import setup +from setuptools import setup setup(name='mqtt', version='1.1.0', author='Thomas Klaehn', - author_email='tkl@blackfinn.de', packages=['mqtt']) + author_email='tkl@blackfinn.de', packages=['mqtt'], install_requires=['paho-mqtt'])