summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2014-11-26 14:08:05 +0100
committerSimon Lejeune <sle@openerp.com>2014-11-28 16:40:55 +0100
commitbe96dd85959528b86f7535b9b4cc0dc86981ca33 (patch)
treecb0c20771883627cbe2ef563649e35f6fe87860d /setup.cfg
parent50a4da99f051d125b8435477657ee2b115a8e0bd (diff)
[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.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 7d0e931e6cd..b1bc001f80b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,4 +1,5 @@
[bdist_rpm]
+install-script = setup/redhat/install.sh
post-install = setup/redhat/postinstall.sh
requires =