mbachry / mosquitto_pyauth

Mosquitto auth plugin that lets you write your auth plugins in Python!
MIT License
64 stars 33 forks source link

How to use with python3 #7

Closed aruldd closed 7 years ago

aruldd commented 7 years ago

I have written a module in python3. I can see the plugin can import from only from python 2 folder. I have trouble setting the python path. Any help will be appreciated.

mbachry commented 7 years ago

Hi! Python 3 is now supported. Check out README. All you need to do is make sure you have python3 headers installed (eg. apt install python3-dev under Ubuntu) and compile with make PYTHON_VERSION=3.6 (or whatever version you use).

I hope it works fine for you. Enjoy!