-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
WIP [mod_python, ESL] Add Python3 support. #191
Conversation
bf13003
to
17421c7
Compare
I've added the ESL patch in there as a seperate commit as well.. |
I think I wasn't clear in the first message... the mod_python3 is just an initial commit... but it doesn't work... It just compile. I changed a few function name that have to be reviewed with the correct one, and commented out a few things. the patch for ESL integration does work and I do use it just fine though. |
…eeswitch-advantage:bugfix/FS-10801-Fix-core-mod-preload to v1.8-fsa * commit '64af8df8f43aba409245df9f3513d08f3344fd69': FS-10801: [Core] Use right order when loading core modules. Revert "FS-10801: [core] temporarily disable db interface preload"
Any idea when this might get integrated and python3 gets the default requirement? |
We must first finish the module ! It is not currently functionning. |
a3e4ca7
to
2b4aa72
Compare
This this latest patch, I merged the changes with mod_python. It not super pretty and final yet, but you may give it a try ! |
Thanks for the patch. i managed to compile and run a print statement (def fsapi) from fs_cli using your mod_python patch without the changes in "configure.ac". May be I applied the patch wrongly. |
Thank you for the patch @mochouinard. We manually entered all the changes mentioned in the patch and then built the library. But when we try to import it, we get following errors:
System information: |
If anyone else comes across this issue, please check if python3-dev package is installed. We were able to fix this issue by installing the package. |
make swigall should fix those issues I think, give it a try after you apply the patch |
Any update on this? Will it be merged in FS? |
Been 3 months, commenting for a bump. Any update on getting this merged? It's going to become quite the problem when OS's start dropping python2 support... |
Please resolve conflicts |
…re with flag --with-python=/usr/bin/python3 (Or the location of your python3 interpreter)
You can now do make py3mod inside libs/esl. If you want to install python2 and python3 support, you woud have to do a make clean of the libs/esl/python folder between make / install
@andywolk is this expected to be merged soon? I see that all the checks have passed and that you have approved it earlier. We are very eager to start testing it out :) |
Thank you for your PR. Unfortunatelly there were much more work than just taking this as is. I am closing this as we finally added Python3 support. See latest commits in master. |
Great news, thanks! |
This is an initial commit for mod_python3 support. A few of the changes I've done here would also be good for mod_python, but decided to wait before this is accepted to back port it.
Python 2.7 is going EOF in a few days... So it about time we move to Python3.
I also have a patch to get ESL python3 to compile.
This is regarding support ticket : #186