Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 compatibility #458

Merged
merged 15 commits into from Feb 6, 2016
Merged

Python 3 compatibility #458

merged 15 commits into from Feb 6, 2016

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Nov 16, 2015

There have been some on-and-off changes to make it work, but nothing that covered the entire build. This PR:

  • Makes fwfetcher.py Python 3 compatible (thus reverts fwfetcher.py fails with Python 3 #370)
  • Adds a second wrapper build for Python 3
    • The BUILD_PYTHON CMake option will now build both 2 and 3.
    • BUILD_PYTHON2 will build only the Python 2 extension.
    • BUILD_PYTHON3 will build only the Python 3 extension.

I have tested that it compiles and imports against 2.7, 3.3, 3.4, and 3.5 and in various combinations of the BUILD_PYTHON* options. Unfortunately, I cannot test all the examples because they require newer OpenCV for Python 3 support (maybe #450 will fix that.) Also, I don't actually own a Kinect...

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
The only division already uses the integral division sign, and the long
literals were not really large enough to really require the suffix
anyway.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@piedar piedar added this to the v0.6.0 milestone Nov 16, 2015
@piedar piedar merged commit 9f350c2 into OpenKinect:master Feb 6, 2016
@piedar
Copy link
Contributor

piedar commented Feb 6, 2016

Finally got some time to test. Nice work!

@QuLogic QuLogic deleted the py3k branch February 9, 2016 05:52
@piedar piedar modified the milestones: v0.5.4, v0.6.0 May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants