[WIP] Port Python 3 backend to Python/C API
Needs ReviewPublic

Authored by filipesaraiva on Oct 9 2017, 8:48 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

I am porting the Python 3 backend in Cantor to use Python/C API instead DBus. The idea is allow this backend work in different platforms like Windows and OS X (where there is not DBus).

This patch is a Work-in-Progress related to T7167.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
filipesaraiva created this revision.Oct 9 2017, 8:48 PM
filipesaraiva added inline comments.Oct 9 2017, 8:53 PM
src/backends/python2/python2backend.cpp
37

I need to ask someone to try if this change doesn't impact with Bug 330032.

src/backends/python3/python3backend.cpp
32

I would like to provide a way to use the Python 3 library found by CMake. That is not a problem in the case of Python 2 because there will be not a Python 2.8 release. It is not the case to Python 3 library.

filipesaraiva added inline comments.Oct 9 2017, 8:54 PM
src/backends/python3/python3backend.cpp
33

I need to ask someone to try if it is ok and there is not problem with some imports in Python, like with the same change in python2backend.cpp.

An additional problem: I need to remove the import of matplotlib from cantor/src/backends/python/import_default_modules.py if not Cantor breaks when I start Python 3 backend. It needs some investigation.