Proposal to introduce pybind for move toward Python 3 compatibility

@breznak Here is my thinking of what we should do.

1. Incorporate my nupic.core code changes. Ideally copy over /src/nupic and /src/test with my code.

  • You can take src from here
  • You can do that on separate branch or a new repo.
  • Add pybind11 to /include
  • It doesn’t matter what python you have on you system.

2. Compile nupic.core and only that. Don’t think about the python bindings modules.

  • You will have to adapt the cmake script. Some cpp files are deleted (think old python c api wrapper classes)
  • Ignore /src/nupic/python files. These are just for the bindings modules.
  • There might be some compiler/linker error we can discuss separately.

3. Compile and run unit tests.

All these steps don’t account for python. That’s next.

What do you think?

1 Like