]> www.infradead.org Git - users/hch/nvmetcli.git/commit
nvmetcli: Install nvmetcli in /usr/sbin with setup.py
authorMauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>
Wed, 5 Apr 2017 23:49:06 +0000 (20:49 -0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Apr 2017 07:19:11 +0000 (09:19 +0200)
commit9ab2ac6c921068bd9075a5827a4ddb174a744a70
treeda33a032770d861d9f4829c33f7483caea4890be
parent65bf3de35b85b6d27498c41cc070970ad50039ec
nvmetcli: Install nvmetcli in /usr/sbin with setup.py

According to the README, one can install nvmetcli through setup.py.
When one tries this though, the nvmetcli isn't configured in system's
$PATH.

Adding nvmetcli to scripts argument in setup call does half of the job.
Then, in order to install it in the correct location in a maintanable
way it's introduced setup.cfg file which contains 'install_scripts'
parameter for 'install' command set to /usr/sbin.

Nothing changes on the .deb package creation, the .rpm package process
in the other hand was made simpler by lines that are now done by
setup.py + setup.cfg settings.

Signed-off-by: Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
rpm/nvmetcli.spec.tmpl
setup.cfg [new file with mode: 0644]
setup.py