#5 Consider using setuptools to generate your CLI tools for you
Opened 7 years ago by bowlofeggs. Modified 7 years ago

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:

      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 ☺


Login to comment on this ticket.

Metadata