This link has the details and the code. In summary, setuptools in Python allows one to package an application so that it can be simply installed and accessed via defined entry points. In this particular case, via CLI command line.

Figure