-# setup from TinERP
-# taken from straw http://www.nongnu.org/straw/index.html
-# taken from gnomolicious http://www.nongnu.org/gnomolicious/
-# adapted by Nicolas Évrard <nicoe@altern.org>
-#
-
-import sys
-import os
-from os.path import join, isfile, basename
-import glob
-
-from pprint import pprint as pp
-
-from setuptools import setup, find_packages
-from setuptools.command.install import install
-from distutils.sysconfig import get_python_lib
-
-has_py2exe = False
-py2exe_keywords = {}
-if os.name == 'nt':
- import py2exe
- has_py2exe = True
- py2exe_keywords['console'] = [
- { "script": join("bin", "openerp-server.py"),
- "icon_resources": [(1, join("pixmaps","openerp-icon.ico"))]
- }]
- py2exe_keywords['options'] = {
- "py2exe": {
- "compressed": 1,
- "optimize": 2,
- "dist_dir": 'dist',
- "packages": [
- "lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
- "lxml.objectify", "decimal", "xml", "xml", "xml.dom", "xml.xpath",
- "encodings", "dateutil", "wizard", "pychart", "PIL", "pyparsing",
- "pydot", "asyncore","asynchat", "reportlab", "vobject",
- "HTMLParser", "select", "mako", "poplib",
- "imaplib", "smtplib", "email", "yaml", "DAV",
- "uuid", "commands",
- ],
- "excludes" : ["Tkconstants","Tkinter","tcl"],
- }
- }
-
-sys.path.append(join(os.path.abspath(os.path.dirname(__file__)), "bin"))
-
-execfile(join('bin', 'release.py'))
-
-if 'bdist_rpm' in sys.argv:
- version = version.split('-')[0]