Commit Graph
24 Commits
Author SHA1 Message Date
Christophe Monniez 8c4c439473 [REF] packaging: use docker to build packages
Actually, docker is used to test Linux packages once they are built.
The packaging process is done on the host system where package.py is
run.

Consequences:
    * difficult to reproduce an exact same build on another host
    * changing a Debian/Ubuntu target version means some upgrade steps
      on the build host (mix that with the fact that the host also
      could build old Odoo versions)
    * Fedora rpm package is built on an Ubuntu system (which is not a
      real problem but it could be)

With this commit, the package.py utility is refactored to use Docker
containers to build the Gnu/Linux packages.

Also, the Debian package is adapted for Debian Buster, the RPM package
is built based on Fedora 30.

Some minor changes are also made in the windows packaging system.

closes odoo/odoo#37766

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2019-10-02 14:24:53 +00:00
Christophe Monniez 7eec6b3643 [FIX] packaging: allow install on fedora29
Fedora 29 switched to python 3.7. It seems that there is no official
way to build a RPM package that could works with 3.6 and 3.7.
Building two different packages for each version could open the pandora
box of packaging.

With this commit an ugly hack is used: if python3.7 is found, the odoo
directory is symlinked into its site-packages dir.

fixes #30579

closes odoo/odoo#30618
2019-01-29 09:09:53 +00:00
Christophe Monniez ee753bfc22 [IMP] debian,rpm: improve kill in service unit (thanks sbidoul) 2017-10-03 12:01:53 +02:00
Christophe Monniez e0dc251805 [IMP] Support for building Fedora26 rpm 2017-10-03 12:01:52 +02:00
Olivier Dony 345f1d4b86 [FIX] packaging: update dependency for pyPdf2
Complements 021de21e8c and #16918
2017-05-26 15:45:39 +02:00
Simon Lejeune 40f1f781bd [FIX] packaging: redhat: use a log file
Without this, odoo log outputs to stdout and is catched by journald. We
force the use of a log file to keep the behavior consistent with the
debian package.
2016-10-24 12:51:52 +02:00
Simon Lejeune c59eb4ffc1 [REF] packaging: renamed configuration files
no fallbacks were implemented to `openerp-server.conf`.
2016-09-30 12:05:49 +02:00
Simon Lejeune ed8f0c83c4 [REF] cli: renamed openerp-server to odoo-bin
The use of an entry point was considered in order to provide
an `odoo` command in the path for the packages users, but the
generated entry point will first check that all the things in
install_requires were provided in a not bright way: it'll check
that it matches a distribution name. This does not work because
python-chart does not have the distrubtion name "pychart" which
is provided by the python-pychart package in debian jessie. Same
for suds-jurko which is provided by python-suds in debian stretch
but does not have the distribution name "suds".

Also, adapted the  packages tests to these cli changes.
2016-09-30 12:05:49 +02:00
Simon Lejeune eb501081c5 [REF] packaging: openerp has been renamed odoo
Fix the various place when the rename of the git root directory
broke the packaging script. Also, we can now name the library
"odoo".
2016-09-30 12:05:48 +02:00
Christophe Simonis 3ed483caa1 [MERGE] forward port of branch 9.0 up to fa4a371 2016-06-07 19:21:18 +02:00
Simon Lejeune 879e2b27d9 [FIX] packaging: redhat: don't write the conf file if already there
this avoid to overwrite the configuration file at each update.

closes  #11722
2016-06-07 16:25:21 +02:00
Simon Lejeune c1ff5d894c [REF] packaging: depends on XlsxWriter 2015-11-26 14:37:33 +01:00
Simon Lejeune 9f3b26c1ca [REF] packaging: ofxparse as "hard" dependency 2015-07-31 14:11:16 +02:00
Simon Lejeune e4a3fbe860 [FIX] packaging: use suds in redhat packaging
easy_install suds-jurko result in "The required version of setuptools
(>=1.4) is not available," in the last CentOS. As we don't want to
force the upgrade of setuptools, use the suds package instead.

Also, add it in centos test environment (missing after
rev 6dfbca2ba0)
2015-07-31 14:11:16 +02:00
Richard Mathot 6dfbca2ba0 [ADD] Activate 'suds' library for Python
This library is a SOAP client. It will be used to integrate Odoo with
external web services that use SOAP based protocols.
2015-07-14 16:04:31 +02:00
Aaron Bohy b6b73551db [IMP] Packaging: Debian, RedHat: No more superuser for odoo role
only create db
2014-12-15 10:41:10 +01:00
Yajo 4bcb31f706 [FIX] packaging: redhat dependencies
Install psycogreen from easy_install (not in EPEL), required for openerp-gevent
2014-12-03 11:40:59 +01:00
Aaron Bohy 9d0bd2807e [FIX] Packaging: RedHat: (post-)install shell shebang 2014-11-28 16:40:56 +01:00
Simon Lejeune 56b61da163 [FIX] Packaging: RedHat: dependencies management
PyChart is now in the EPEL repo so we now list it as required in
setup.cfg. The other mandatory lib not provided by EPEL are
pyPdf, vatnumber and pydot and are now installed by easy_install
during the post install.
2014-11-28 16:40:55 +01:00
Simon Lejeune be96dd8595 [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.
2014-11-28 16:40:55 +01:00
Christophe Simonis 80a932479b FIX] packaging: odoo-ification 2014-09-04 16:27:58 +02:00
Simon Lejeune 7db12dc47b [ADD] RedHat: defined the dependencies and added a post-install script to create the odoo user, the odoo configuration file, ... 2014-09-02 14:13:01 +02:00
Antony Lesuisse 2f4984b838 [IMP] packaging v8 part1, tgz deb and rpm 2014-05-30 01:54:20 +02:00
Antony Lesuisse d4624fa826 [IMP] repository cleanup
- move packaging stuff to setup
- remove historical stuff
- remove oe, odoo-cmd-fme will be merged with the convered commands
- add an odoo.py script to run odo and boostrap it
- simplify README
- prepare to move documentation to the github wiki
2014-05-29 18:33:04 +02:00