It is possible to get your setup.py to generate and install /usr/bin/flr-docker for you, if you want. For an example of this, you can check out Bodhi's setup.py, which generates several CLI tools (including the bodhi CLI). This is the relevant snippet for bodhi's CLI:
/usr/bin/flr-docker
setup.py
bodhi
entry_points = """\ [console_scripts] bodhi = bodhi.client:cli """,
With a setup like that, you won't need to have your spec file do anything special to get this CLI installed, it'll just get installed when you run setup.py install (or even setup.py develop). It's pretty nice ☺
setup.py install
setup.py develop
Here is the relevant documentation:
http://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-console-scripts-entry-point
Login to comment on this ticket.