[FIX] Packaging: RedHat: install in /usr and add systemd unit file
authorSimon Lejeune <sle@openerp.com>
Wed, 26 Nov 2014 13:08:05 +0000 (14:08 +0100)
committerSimon Lejeune <sle@openerp.com>
Fri, 28 Nov 2014 15:40:55 +0000 (16:40 +0100)
commitbe96dd85959528b86f7535b9b4cc0dc86981ca33
treecb0c20771883627cbe2ef563649e35f6fe87860d
parent50a4da99f051d125b8435477657ee2b115a8e0bd
[FIX] Packaging: RedHat: install in /usr and add systemd unit file

By default, the package was installed in /usr/local/lib/python2.7 in CentOS7.
It is problematic because most of other python packages are installed in /usr/lib
and also because /usr/local/lib is not in the default PYTHONPATH. It's fixed by
overriding the install script and forcing prefix to be /usr.

Added a minimal systemd unitfile.
Adapted tests accordingly.
setup.cfg
setup/package.py
setup/redhat/install.sh [new file with mode: 0644]
setup/redhat/postinstall.sh