Python 3 support#34
Conversation
This also requires to link with the gmodule library.
The updated sources are still compatible with Python 2.
Python 3 appends the ABI flags to the version in the shared library file name: since this library is loaded as a gmodule, the correct file name must be provided.
|
Which program do you use to test this in f29? Beside from that it builds fine with f29 and python3 |
|
And building for f28 with python2 gives me that build error. |
Yes, I know: rabbitvcs is not yet ready for Python 3. However I'm working on the conversion (not yet ready), and I already have menus and icons (they are often wrong and need manual refresh, but that's rabbitvcs business!).
Oops, my bad: this is a cut and paste error that should be fixed now by commit 2f08aba |
|
Ok, python2 build works again with latest commit and i could test it with a rebuild of obsolete caja-terminal rpm, I have no idea to test python3 build with nextcloud-client-caja, nitroshare-extension-caja or owncloud-client-caja extensions. |
Me neither :-( |
|
Sure, adding an test example make sense. |
I did not see there were already some example extensions in subdir examples :-| Please check PR #35 You can then use the new |
The example extension scripts need to be in sync with new versions of referenced foreign packages. This commit also makes them compatible with Python version 3 (retaining Python 2 compatibility). An additional example extension "mixed" is added: it implements all caja extension features and can also be used as a new extension pattern. See source header comment for a description. Ref: #34 (comment)
|
Thanks for merge! |
|
@monnerat |
Thanks: I will check and leave karma :-) |
|
Should we keep |
Well, I've left it unchanged as a minimum version requirement. |
|
Might be useful, yes. At least it would be an explicit option for configure, not some undocumented env var... 🙂 |
I've submitted PR #37 to fix this problem.
I have implemented it as an internal setting of
Sure! |
This PR introduces Python 3 compatibility while retaining Python 2 compatibility.
It also features build failures when a symbol cannot be resolved at link time, and allows to
make distwithout building the documentation.Runs nice here on Fedora 29 x86_64.
Ref: #30
Thanks for considering it.