Skip to content

Commit 25cae52

Browse files
committed
[IMP] debian: build package for python 3.5
* Add a minimum systemd service file
1 parent 44a3828 commit 25cae52

File tree

5 files changed

+50
-36
lines changed

5 files changed

+50
-36
lines changed

debian/control

+31-34
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,47 @@ Section: net
33
Priority: optional
44
Maintainer: Odoo S.A. <[email protected]>
55
Uploaders: Aaron Bohy <[email protected]>, Simon Lejeune <[email protected]>
6-
Build-Depends: debhelper (>= 9.0), python, rsync
7-
X-Python-Version: 2.7
8-
Standards-Version: 3.9.5.0
6+
Build-Depends: debhelper (>= 9.2), dh-python, python3, rsync, python3-setuptools
7+
Standards-Version: 3.9.8
98
Homepage: http://www.odoo.com/
109
Vcs-Git: https://github.com/odoo/odoo
1110

1211
Package: odoo
1312
Architecture: all
1413
Depends:
1514
${misc:Depends},
15+
${python3:Depends},
1616
adduser,
17+
lsb-base,
1718
node-less,
1819
postgresql-client,
19-
python,
20-
python-babel,
21-
python-dateutil,
22-
python-decorator,
23-
python-docutils,
24-
python-feedparser,
25-
python-imaging,
26-
python-jinja2,
27-
python-ldap,
28-
python-libxslt1,
29-
python-lxml,
30-
python-mako,
31-
python-mock,
32-
python-openid,
33-
python-passlib,
34-
python-psutil,
35-
python-psycopg2,
36-
python-pychart,
37-
python-pydot,
38-
python-pyparsing,
39-
python-pypdf2,
40-
python-reportlab,
41-
python-requests,
42-
python-suds,
43-
python-tz,
44-
python-vatnumber,
45-
python-vobject,
46-
python-werkzeug,
47-
python-xlsxwriter,
48-
python-xlwt,
49-
python-yaml,
20+
python3-babel,
21+
python3-dateutil,
22+
python3-decorator,
23+
python3-docutils,
24+
python3-feedparser,
25+
python3-html2text,
26+
python3-pil,
27+
python3-jinja2,
28+
python3-lxml,
29+
python3-mako,
30+
python3-mock,
31+
python3-openid,
32+
python3-passlib,
33+
python3-psutil,
34+
python3-psycopg2,
35+
python3-pydot,
36+
python3-pyparsing,
37+
python3-pypdf2,
38+
python3-reportlab,
39+
python3-requests,
40+
python3-suds,
41+
python3-tz,
42+
python3-vatnumber,
43+
python3-vobject,
44+
python3-werkzeug,
45+
python3-xlsxwriter,
46+
python3-yaml,
5047
Conflicts: tinyerp-server, openerp-server, openerp-web, openerp
5148
Replaces: tinyerp-server, openerp-server, openerp-web, openerp
5249
Recommends:

debian/odoo.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ db_host = False
55
db_port = False
66
db_user = odoo
77
db_password = False
8-
addons_path = /usr/lib/python2.7/dist-packages/odoo/addons
8+
;addons_path = /usr/lib/python3/dist-packages/odoo/addons

debian/odoo.service

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=Odoo Open Source ERP and CRM
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
User=odoo
8+
Group=odoo
9+
ExecStart=/usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log
10+
11+
[Install]
12+
WantedBy=multi-user.target
13+

debian/rules

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/make -f
2+
export DH_VERBOSE=1
3+
export PYBUILD_NAME=odoo-bin
4+
export PYBUILD_DISABLE=test
25

36
%:
4-
dh ${@} -Spython_distutils
7+
dh ${@} --with=python3,systemd --buildsystem=pybuild

debian/source/format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)