This is a quick walk through of how to take c++ and run it with Python through bindings. If you find yourself wishing to learn more on the topic, Swig's website for working with Python is a good start. My experience in setting this up was far more tedious than it had to be and I hope this will save people some time. As a note, I currently work on Ubuntu 16.04 and Python 2.7, this will be tailored to those dependencies, however, I do not believe any major changes will be required to the setup.py
file based on Swig's website and a Stackoverflow question for Python 3. In addition, the majority of operating systems should be covered by this walkthrough, with minor tweaks such as yum
instead of apt-get
for select operating systems.
python-dev
sudo apt-get install p