cleaning and improving setup configuration
Change-Id: Ica609dd336cb3c26cf71ed4c548421de352cbb47
This commit is contained in:
parent
d432173379
commit
29719e3d60
42
install.sh
42
install.sh
|
@ -1,42 +0,0 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
function build_install {
|
|
||||||
python setup.py build
|
|
||||||
python setup.py install
|
|
||||||
}
|
|
||||||
|
|
||||||
function restart_apache {
|
|
||||||
if which apache2 ; then
|
|
||||||
systemctl restart apache2
|
|
||||||
else
|
|
||||||
systemctl restart httpd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
api)
|
|
||||||
build_install
|
|
||||||
restart_apache
|
|
||||||
;;
|
|
||||||
|
|
||||||
conductor)
|
|
||||||
build_install
|
|
||||||
cp bin/iotronic-conductor /usr/bin/
|
|
||||||
;;
|
|
||||||
|
|
||||||
wamp-agent)
|
|
||||||
build_install
|
|
||||||
cp bin/iotronic-wamp-agent /usr/bin/
|
|
||||||
;;
|
|
||||||
|
|
||||||
all)
|
|
||||||
build_install
|
|
||||||
restart_apache
|
|
||||||
cp bin/iotronic-conductor /usr/bin/
|
|
||||||
cp bin/iotronic-wamp-agent /usr/bin/
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {api|conductor|wamp-agent|all}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
10
setup.cfg
10
setup.cfg
|
@ -19,7 +19,12 @@ classifier =
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.5
|
Programming Language :: Python :: 3.5
|
||||||
|
|
||||||
|
[entry_points]
|
||||||
|
console_scripts =
|
||||||
|
iotronic-conductor = iotronic.cmd.conductor:main
|
||||||
|
iotronic-wamp-agent = iotronic.cmd.wamp_agent:main
|
||||||
|
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
iotronic
|
iotronic
|
||||||
|
@ -28,7 +33,8 @@ data_files =
|
||||||
/etc/iotronic =
|
/etc/iotronic =
|
||||||
etc/iotronic/iotronic.conf
|
etc/iotronic/iotronic.conf
|
||||||
etc/iotronic/policy.json
|
etc/iotronic/policy.json
|
||||||
|
/var/www/cgi-bin/iotronic =
|
||||||
|
iotronic/wsgi/app.wsgi
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
source-dir = doc/source
|
source-dir = doc/source
|
||||||
|
|
Loading…
Reference in New Issue