I decided to try using the Sword bindings with python 3 on a system
with both python 2 & 3, and here's what I did to make it work:

1. made the following change to python/CMakeLists.txt:
-FIND_PACKAGE(PythonInterp REQUIRED)
-FIND_PACKAGE(PythonLibs)
+FIND_PACKAGE(PythonInterp 3 REQUIRED)
+FIND_PACKAGE(PythonLibs 3)

2. use the latest cmake (2.8.12.1)

3. ran the sword install process with a python 3 virtual env
activated; then ran python 3 and was able to use the Sword module

Not sure how easy it would be to pass in the desired python version as
a cmake parameter.

-Ben

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to