Skip to content
Snippets Groups Projects
  1. Feb 01, 2021
  2. Sep 15, 2020
    • Christophe Monniez's avatar
      [IMP] packaging: update windows packaging · c47d7c67
      Christophe Monniez authored
      
      Up to Odoo 13.0, the windows setup is 32 bits and embeds an old
      postgresql 9.5 32 bits version too.
      
      With this commit, the postgresql server is no longer embedded in the
      resulting setup file. Instead, if the user choose to install the
      postgresql server, the 12.4 version is downloaded from the official site
      (version 10.14 in the case of a 32 bits windows).
      
      Also, the Python target achitecture is choosen based on the Windows
      system on which Odoo is installed.
      
      This imply changes on the KVM images used to build the installer:
      
          - The Windows system on the KVM as to be 64 bits.
          - A 32 bits WinPython version must be in `c:/odoobuild/WinPy32`
          - A 64 bits WinPyhton version must be in `c:/odoobuild/WinPy64`
      
      A little bit of cleaning also comes with this commit to get rid of the
      old `openerp` references.
      
      closes odoo/odoo#57155
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      c47d7c67
  3. Aug 03, 2020
  4. Feb 05, 2020
  5. Jan 22, 2020
    • Martin Trigaux's avatar
      [FIX] auth_ldap: replace the deprecated library by one up to date · 9aef423d
      Martin Trigaux authored
      At 795c7b0a the external dependencies was changed from trying
      to import 'ldap' to checking than 'pyldap' package was installed.
      The problem is that pyldap is a unmaintained library that should no
      longer be used, as explained on the package page:
      https://pypi.org/project/pyldap/
      
      
      "The pyldap fork was merged back into python-ldap, and released as
       python-ldap 3.0.0."
      
      Having pyldap version >= 3.0 installs python-ldap automatically and
      will not cause any issue.
      
      The Debian control file package name is adapted to use the latest.
      
      The "ldap" externalm dependency defined in __manifest__.py will cause
      pkg_resources.get_distribution() to fail in both case ("python-lap" or
      "pyldap"), but the "import" fallback will succeed. For that reason, the
      log warning is turned into a log info.
      
      closes odoo/odoo#43769
      
      Note: This library should be replaced by the pure python "ldap3" library.
      X-original-commit: 1afd0ccf
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      9aef423d
  6. Nov 05, 2019
    • Christophe Monniez's avatar
      [FIX] packaging: compute winpython path with package.py args · 7ce07a7a
      Christophe Monniez authored
      
      When building the MS Windows package, the PYTHON_VERSION variable is not
      used and the WinPython path is hard coded in the Makefile and NSI file.
      This prevent the usage of a newer version of Python.
      
      With this commit, the PYTHON_VERSION is used to compute the WinPython
      Python directory. That way, this directory can be derived from
      package.py command line argument --vm-winxp-python-version.
      
      Also the less windows binaries are not packaged anymore.
      
      closes odoo/odoo#39821
      
      X-original-commit: ac90d858
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      7ce07a7a
  7. Oct 11, 2019
  8. Jun 05, 2019
  9. Apr 10, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · 6cbecced
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      6cbecced
  10. May 07, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · e554ce34
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      e554ce34
  11. Feb 05, 2019
  12. Nov 08, 2018
    • Christophe Monniez's avatar
      [REM] packaging: remove useless code · 055e1b83
      Christophe Monniez authored
      PKG-INFO is generated during the setup phase and is not needed anymore.
      Also this file contains outdated informations.
      
      py2exe is not used anymore to build the windows installer.
      
      closes odoo/odoo#28494
      055e1b83
  13. Oct 09, 2018
  14. Apr 26, 2018
    • Christophe Monniez's avatar
      [IMP] packaging: automate package update in Windows build · 5666bc3d
      Christophe Monniez authored
      When building the Windows installer, a virtual machine is used with
      prepackaged python modules.
      
      With this commit, the packaging script will try to install on the
      virtual machine the python packages specified in requirements.txt.
      Each package is installed individually, that way, if an install fails,
      the install of the other packages continues.
      At the end of the process, successfully packages are listed so that they
      will appear in the build log files.
      
      Also, the Makefile was cleaned in this commit (removal of py2exe stuffs).
      5666bc3d
  15. Oct 18, 2017
    • Christophe Monniez's avatar
      [FIX] packages: install vc_redist files properly · d38d62f5
      Christophe Monniez authored
      Nsis installer was installing the wrong MS Visual C++ redistributable
      file. Python 3.6 needs MS Visual C++ 2015 redistruibutable files.
      
      Also, Nsis now differentiate Windows architecture for the nssm service
      and the MS C++ redist.
      d38d62f5
  16. Oct 12, 2017
  17. Oct 09, 2017
  18. Oct 03, 2017
    • Christophe Monniez's avatar
      [REF] win32: move to WinPython... · 06c2346d
      Christophe Monniez authored
      Purpose: for multiple reasons (bytecode change in python 3.6,
               missing files for some packages, py2exe is unmaintained
               ...) the py2exe solution cannot be used anymore.
               Odoo for windows will now use a portable Python that
               will be shipped with the Windows installer.
               For that purpose, a Winpython 3.6.2 is used.
               In order to build the Windows installer, a Winpython dir
               with all the Odoo requirements fullfilled, must exists on
               the build system (qemu-kvm VM).
      
      * nsis installer:
          - Only the python dir is used to avoid packaging too much stuffs
          - better compression level
          - starts the Odoo service using nssm
          -  bump to V11
      * change the default win10 build vm path
      * print a warning when uncomplete addon move
      * try to force remove of addon path:
        when the addons are moved to Odoo/addons, it happens that the
        destination already exists. In that case, the source addon was not
        deleted, resulting in a uneeded file duplication.
      * fix version string to avoid invalid chars in windows service
      * Add requirements adpated for WinPython
      * package.py now shows the traceback when a build fails
      * verify that a file exists before publishing
      * debuild now creates an .xz file instead of .gz
      * package: use logging module
      * kvm CPU that works with older versions.
      * fix a pexpect encoding bug
      * fix the version to remove special chars '~' which is not appreciated
        by windows services
      
      [REM] win32setup: Remove win32 python service
      
      Purpose:
          Before this commit, the win32 service was managed by an executable
          builded from those two files with the help of py2xe.
          The win32 service is now managed by nssm which starts Odoo and therefore, those
          files are not needed anymore.
      06c2346d
  19. Apr 27, 2017
    • xmo-odoo's avatar
      [FIX] builtins removed from Python 3 · 2e6a589f
      xmo-odoo authored
      * Reverse wrapper courtesy of @rco-odoo's original P3 branch
      * thin compat module stripped down from werkzeug (to augment as needed)
      
      issue 8530
      2e6a589f
  20. Sep 30, 2016
  21. Sep 11, 2015
  22. Sep 08, 2015
  23. Aug 07, 2015
  24. Jul 13, 2015
  25. Jun 02, 2015
  26. Dec 19, 2014
  27. Nov 21, 2014
  28. Oct 02, 2014
  29. Sep 18, 2014
Loading