1
by pinky
New trunk |
1 |
#!/usr/bin/env python
|
1864
by pap(openerp)
Changed encoding to coding ref: PEP: 0263 |
2 |
# -*- coding: utf-8 -*-
|
809
by stw
add Copyright and GPL license into the Header of Python files |
3 |
##############################################################################
|
1920
by NCH(openerp)
Added mako in setup.py |
4 |
#
|
1766.1.12
by Naresh Choksy
Bugfix:373230 |
5 |
# OpenERP, Open Source Management Solution
|
1958.1.30
by Stephane Wirtel
[FIX] Change the year of the copyright |
6 |
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
1230
by Christophe Simonis
passing in GPL-3 |
7 |
#
|
8 |
# This program is free software: you can redistribute it and/or modify
|
|
1861
by PSO(OpenERP)
Changed licencing |
9 |
# it under the terms of the GNU Affero General Public License as
|
10 |
# published by the Free Software Foundation, either version 3 of the
|
|
11 |
# License, or (at your option) any later version.
|
|
1230
by Christophe Simonis
passing in GPL-3 |
12 |
#
|
13 |
# This program is distributed in the hope that it will be useful,
|
|
14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1861
by PSO(OpenERP)
Changed licencing |
16 |
# GNU Affero General Public License for more details.
|
1230
by Christophe Simonis
passing in GPL-3 |
17 |
#
|
1861
by PSO(OpenERP)
Changed licencing |
18 |
# You should have received a copy of the GNU Affero General Public License
|
1920
by NCH(openerp)
Added mako in setup.py |
19 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1230
by Christophe Simonis
passing in GPL-3 |
20 |
#
|
21 |
##############################################################################
|
|
1229
by Christophe Simonis
improvement |
22 |
|
3659
by Antony Lesuisse
[IMP] directory cleanups, moved historical cruft into history |
23 |
import glob, os, re, setuptools, sys |
3359.2.3
by Vo Minh Thu
[IMP] setup.py: cleaning |
24 |
from os.path import join, isfile |
1
by pinky
New trunk |
25 |
|
3659
by Antony Lesuisse
[IMP] directory cleanups, moved historical cruft into history |
26 |
# List all data files
|
27 |
def data(): |
|
28 |
files = [] |
|
29 |
for root, dirnames, filenames in os.walk('openerp'): |
|
30 |
for filename in filenames: |
|
31 |
if not re.match(r'.*(\.pyc|\.pyo|\~)$',filename): |
|
32 |
files.append(os.path.join(root, filename)) |
|
33 |
d = {} |
|
34 |
for v in files: |
|
35 |
k=os.path.dirname(v) |
|
36 |
if k in d: |
|
37 |
d[k].append(v) |
|
38 |
else: |
|
39 |
d[k]=[v] |
|
40 |
r = d.items() |
|
41 |
return r |
|
42 |
||
43 |
def gen_manifest(): |
|
44 |
file_list="\n".join(data()) |
|
45 |
open('MANIFEST','w').write(file_list) |
|
46 |
||
3691.1.3
by Antony Lesuisse
[IMP] packaging timestamp support |
47 |
def py2exe_options(): |
48 |
if os.name == 'nt': |
|
49 |
import py2exe |
|
50 |
return { |
|
51 |
"console" : [ { "script": "openerp-server", "icon_resources": [(1, join("pixmaps","openerp-icon.ico"))], }], |
|
52 |
'options' : { |
|
53 |
"py2exe": { |
|
54 |
"skip_archive": 1, |
|
55 |
"optimize": 2, |
|
56 |
"dist_dir": 'dist', |
|
57 |
"packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "email", "encodings", "imaplib", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber" "vobject", "xml", "xml", "xml.dom", "xml.xpath", "yaml", ], |
|
58 |
"excludes" : ["Tkconstants","Tkinter","tcl"], |
|
59 |
}
|
|
60 |
}
|
|
61 |
}
|
|
62 |
else: |
|
63 |
return {} |
|
64 |
||
65 |
execfile(join(os.path.dirname(__file__), 'openerp', 'release.py')) |
|
66 |
||
3659
by Antony Lesuisse
[IMP] directory cleanups, moved historical cruft into history |
67 |
setuptools.setup( |
3691.1.2
by Antony Lesuisse
[IMP] packaging rename into openerp |
68 |
name = 'openerp', |
1
by pinky
New trunk |
69 |
version = version, |
314
by ced
SERVER: improve setup |
70 |
description = description, |
1
by pinky
New trunk |
71 |
long_description = long_desc, |
314
by ced
SERVER: improve setup |
72 |
url = url, |
73 |
author = author, |
|
74 |
author_email = author_email, |
|
1
by pinky
New trunk |
75 |
classifiers = filter(None, classifiers.split("\n")), |
314
by ced
SERVER: improve setup |
76 |
license = license, |
3359.2.9
by Vo Minh Thu
[REF] renamed openerp-server.py to openerp-server. |
77 |
scripts = ['openerp-server'], |
3659
by Antony Lesuisse
[IMP] directory cleanups, moved historical cruft into history |
78 |
data_files = data(), |
79 |
packages = setuptools.find_packages(), |
|
80 |
#include_package_data = True,
|
|
2918
by Stephane Wirtel
[FIX] Update the setup.py to solve some problems |
81 |
install_requires = [ |
3359.2.6
by Vo Minh Thu
[FIX] setup.py: py2exe, sdist, and install seem good. |
82 |
# TODO the pychart package we include in openerp corresponds to PyChart 1.37.
|
83 |
# It seems there is a single difference, which is a spurious print in generate_docs.py.
|
|
84 |
# It is probably safe to move to PyChart 1.39 (the latest one).
|
|
85 |
# (Let setup.py choose the latest one, and we should check we can remove pychart from
|
|
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
86 |
# our tree.) http://download.gna.org/pychart/
|
87 |
# TODO 'pychart',
|
|
3692.1.1
by Antony Lesuisse
[FIX] missing deps babel and openid |
88 |
'babel', |
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
89 |
'feedparser', |
3694
by Antony Lesuisse
missing deps gdata |
90 |
'gdata', |
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
91 |
'lxml', |
92 |
'mako', |
|
93 |
'psycopg2', |
|
2918
by Stephane Wirtel
[FIX] Update the setup.py to solve some problems |
94 |
'pydot', |
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
95 |
'python-dateutil', |
3692.1.4
by Antony Lesuisse
[FIX] missing deps typo |
96 |
'python-ldap', |
3692.1.2
by Antony Lesuisse
[FIX] missing deps typo openid |
97 |
'python-openid', |
2918
by Stephane Wirtel
[FIX] Update the setup.py to solve some problems |
98 |
'pytz', |
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
99 |
'pywebdav', |
100 |
'pyyaml', |
|
2918
by Stephane Wirtel
[FIX] Update the setup.py to solve some problems |
101 |
'reportlab', |
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
102 |
'simplejson', |
3732
by Antony Lesuisse
[IMP] debian missing deps |
103 |
'vatnumber', |
3696
by Antony Lesuisse
missing deps vobject |
104 |
'vobject', |
3691.1.6
by Antony Lesuisse
[IMP] packaging depends |
105 |
'werkzeug', |
3695
by Antony Lesuisse
missing deps zsi |
106 |
'zsi', |
2918
by Stephane Wirtel
[FIX] Update the setup.py to solve some problems |
107 |
],
|
3359.2.3
by Vo Minh Thu
[IMP] setup.py: cleaning |
108 |
extras_require = { |
2309.1.1
by Stephane Wirtel
[IMP] Rewrite the setup.py file to use the setuptools package |
109 |
'SSL' : ['pyopenssl'], |
3359.2.3
by Vo Minh Thu
[IMP] setup.py: cleaning |
110 |
},
|
3691.1.3
by Antony Lesuisse
[IMP] packaging timestamp support |
111 |
**py2exe_options() |
2309.1.1
by Stephane Wirtel
[IMP] Rewrite the setup.py file to use the setuptools package |
112 |
)
|
1
by pinky
New trunk |
113 |