2 # -*- coding: utf-8 -*-
3 ##############################################################################
5 # OpenERP, Open Source Management Solution
6 # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
8 # This program is free software: you can redistribute it and/or modify
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.
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
16 # GNU Affero General Public License for more details.
18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ##############################################################################
23 import glob, os, re, setuptools, sys
24 from os.path import join, isfile
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))
42 r.append(("Microsoft.VC90.CRT", glob.glob('C:\Microsoft.VC90.CRT\*.*')))
45 r.append(("localedata",
46 glob.glob(os.path.join(os.path.dirname(babel.__file__), "localedata" , '*'))))
51 file_list="\n".join(data())
52 open('MANIFEST','w').write(file_list)
55 sys.path.append("C:\Microsoft.VC90.CRT")
61 "console" : [ { "script": "openerp-server", "icon_resources": [(1, join("install","openerp-icon.ico"))], }],
67 "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.dom", "yaml", ],
68 "excludes" : ["Tkconstants","Tkinter","tcl"],
75 execfile(join(os.path.dirname(__file__), 'openerp', 'release.py'))
77 # Notes for OpenERP developer on windows:
79 # To setup a windows developer evironement install python2.7 then pip and use
80 # "pip install <depencey>" for every dependency listed below.
82 # Dependecies that requires DLLs are not installable with pip install, for
83 # them we added comments with links where you can find the installers.
85 # OpenERP on windows also require the pywin32, the binary can be found at
86 # http://pywin32.sf.net
88 # Both python2.7 32bits and 64bits are known to work.
93 description = description,
94 long_description = long_desc,
97 author_email = author_email,
98 classifiers = filter(None, classifiers.split("\n")),
100 scripts = ['openerp-server'],
102 packages = setuptools.find_packages(),
103 dependency_links = ['http://download.gna.org/pychart/'],
104 #include_package_data = True,
106 'pychart', # not on pypi, use: pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz
111 'lxml < 3', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
113 'PIL', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
114 'psutil', # windows binary code.google.com/p/psutil/downloads/list
117 'python-dateutil < 2',
118 'python-ldap', # optional
123 'reportlab', # windows binary pypi.python.org/pypi/reportlab
131 'SSL' : ['pyopenssl'],
133 tests_require = ['unittest2'],
138 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: