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.
38 lines
1.6 KiB
Python
38 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
RELEASE_LEVELS = [ALPHA, BETA, RELEASE_CANDIDATE, FINAL] = ['alpha', 'beta', 'candidate', 'final']
|
|
RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA,
|
|
BETA: BETA,
|
|
RELEASE_CANDIDATE: 'rc',
|
|
FINAL: ''}
|
|
|
|
# version_info format: (MAJOR, MINOR, MICRO, RELEASE_LEVEL, SERIAL)
|
|
# inspired by Python's own sys.version_info, in order to be
|
|
# properly comparable using normal operarors, for example:
|
|
# (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2)
|
|
# (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0)
|
|
version_info = (10, 'saas~18', 0, FINAL, 0, '')
|
|
version = '.'.join(str(s) for s in version_info[:2]) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') + version_info[5]
|
|
series = serie = major_version = '.'.join(str(s) for s in version_info[:2])
|
|
|
|
product_name = 'Odoo'
|
|
description = 'Odoo Server'
|
|
long_desc = '''Odoo is a complete ERP and CRM. The main features are accounting (analytic
|
|
and financial), stock management, sales and purchases management, tasks
|
|
automation, marketing campaigns, help desk, POS, etc. Technical features include
|
|
a distributed server, an object database, a dynamic GUI,
|
|
customizable reports, and XML-RPC interfaces.
|
|
'''
|
|
classifiers = """Development Status :: 5 - Production/Stable
|
|
License :: OSI Approved :: GNU Lesser General Public License v3
|
|
|
|
Programming Language :: Python
|
|
"""
|
|
url = 'https://www.odoo.com'
|
|
author = 'OpenERP S.A.'
|
|
author_email = 'info@odoo.com'
|
|
license = 'LGPL-3'
|
|
|
|
nt_service_name = "odoo-server-" + series.replace('~','-')
|