RaySession icon indicating copy to clipboard operation
RaySession copied to clipboard

Build and install using setuptools

Open dvzrv opened this issue 7 years ago • 3 comments

Generally, setupotools would be the way to build and install raysession. It's a python application after all.

dvzrv avatar Nov 24 '18 10:11 dvzrv

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 bin directory is not best practice. However, one can directly define an entry_point and 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.

dvzrv avatar Nov 24 '18 10:11 dvzrv

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

Houston4444 avatar Nov 24 '18 21:11 Houston4444

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.

Houston4444 avatar Dec 03 '18 08:12 Houston4444