Posts: 5
Joined: Sep 2020
Reputation:
0
I am starting to develop addon for kivy, I have migrated xbmcswift2 to work with python 3 but I have a question, when an addon that requires xbmcswift3 is installed it needs a script script.module.xbmcswift3, how should I generate this module? should it go up to pypi?
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
well.. xbmcswift2 has already been ported to py3 and is available from our addon repo...
Posts: 5
Joined: Sep 2020
Reputation:
0
Why are there repositories of libraries that already exist? eg script.module.beautifulsoup4, this repository already exists in github, but in the addon.xml script.module.beautifulsoup4 is imported and not the original repository, why is this done?
Posts: 614
Joined: Mar 2011
Reputation:
80
sarbes
Team-Kodi Member
Posts: 614
Please rephrase the question.
Posts: 5
Joined: Sep 2020
Reputation:
0
beautifulsoup4 exists on github, why is another one called script.module.beautifulsoup4 created?
Posts: 1,662
Joined: Jun 2011
Reputation:
119
GitHub is a source code hosting and has nothing to do with an installation package distribution system. For generic Python the main package distribution system is PyPI with pip as a command line client. Distributable Python packages are hosted on PyPI in different forms (tar.gz, wheels) but source code for those packages can be hosted at various source code hosting providers - GitHub, GitLab, BitBucket, self-hosted reps etc. PyPI is not the only package distribution system for Python, there are alternative ones, like Anaconda with conda as a command line client.
Kodi uses its own homegrown installation package distribution system in form of addons. So any Python library or a program needs to be packaged as a Kodi addon and hosted in a Kodi addons repo to be available for installing from Kodi ether as a primary addon or as a library dependency.
Posts: 5
Joined: Sep 2020
Reputation:
0
Thanks, this is what I wanted to know, for a script to be installed in kodi, it must be inside the official kodi repository