Build and install using setuptools
Generally, setupotools would be the way to build and install raysession. It's a python application after all.
A little background on why:
-
Using a bash script to call a python application, as it is done with the scripts that are put into the
bindirectory is not best practice. However, one can directly define anentry_pointand make setuptools declare and install such an executable script automatically. -
Using an unspecified version of python3 and not installing to site just calls for trouble!
-
Not using a module/classes based codebase (i.e. include from modules, instead of declaring everything in one file) is very hard to understand or even test and leads to spaghetti-code (e.g. 4000 lines of code in the "main script"). I'm sorry to say this, but not a lot of people will want to work on improving or even understanding, let alone packaging this. The current setup actually prevents it from being packged cleanly.
Thanks to talk about problems. I learn alone with wrong ways and good text editor. I'll take a look to this in 2 weeks, I am not currently at Home. Regards
I'm not opposed to the idea but I would need a full example on how to do that. I found that : setuptools example, but I don't know which command should I execute to run it, and how it install (.py and non .py) files to system. Then, I'll have to know how to make a deb package with this.