2019-09-03, 18:15
I've been trying to update dependencies on my addons and came across something I couldn't figure a way around on my own. Specifically this is for the httplib2 module (source: https://github.com/httplib2/httplib2).
It has two distinct version for either python 2 or python 3. They're the same version number, just different chunks of code depending on the platform you're on. How should I go about updating this for inclusion to the Kodi repo? If Kodi 19 is going to be strictly Python 3 could I just submit the Python 3 version directly to that repo so it's available there and everything below that would get the Python 2 version currently in the repo?
Ideally loading the module and having it choose the correct 2 or 3 version depending on your python version would workbest. I'm unsure if this is possible. I tried detecting the version and loading the python2 or python3 folder via the __init__.py file but non of my imports resolved correctly so I didn't spend a lot of time on it. Any ideas here please let me know.
It has two distinct version for either python 2 or python 3. They're the same version number, just different chunks of code depending on the platform you're on. How should I go about updating this for inclusion to the Kodi repo? If Kodi 19 is going to be strictly Python 3 could I just submit the Python 3 version directly to that repo so it's available there and everything below that would get the Python 2 version currently in the repo?
Ideally loading the module and having it choose the correct 2 or 3 version depending on your python version would workbest. I'm unsure if this is possible. I tried detecting the version and loading the python2 or python3 folder via the __init__.py file but non of my imports resolved correctly so I didn't spend a lot of time on it. Any ideas here please let me know.