- for addonname, add_path in find_addons():
- addon_path = join('lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server','addons', addonname)
- for root, dirs, innerfiles in os.walk(add_path):
- innerfiles = filter(lambda fil: os.path.splitext(fil)[1] not in ('.pyc', '.pyd', '.pyo'), innerfiles)
- if innerfiles:
- res = os.path.normpath(join(addon_path, root.replace(join(add_path), '.')))
- files.extend(((res, map(lambda fil: join(root, fil),
- innerfiles)),))
-
- return files
-
-if not os.getenv('NO_CHECK_MODULES') :
- check_modules()
-
-f = file('openerp-server','w')
-f.write("""#!/bin/sh
-echo "Error: the content of this file should have been replaced during "
-echo "installation\n"
-exit 1
-""")
-f.close()
-
-def find_package_dirs():
- package_dirs = {'openerp-server': 'bin'}
- for mod, path in find_addons():
- package_dirs['openerp-server.addons.' + mod] = path
- return package_dirs
-
-class openerp_server_install(install):
- def run(self):
- # create startup script
- start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n"\
- % (join(self.install_libbase, "openerp-server"), sys.executable)
- # write script
- f = open('openerp-server', 'w')
- f.write(start_script)
- f.close()
- install.run(self)
-
-options = {
- "py2exe": {
- "compressed": 1,
- "optimize": 2,
- "dist_dir": 'dist',
- "packages": ["lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
- "lxml.objectify", "decimal", "xml", "xml.dom", "xml.xpath",
- "encodings","mx.DateTime","wizard","pychart","PIL",
- "pyparsing", "pydot","asyncore","asynchat", "reportlab",
- "vobject", "HTMLParser", "select"],
- "excludes" : ["Tkconstants","Tkinter","tcl"],
- }
-}
+# Notes for OpenERP developer on windows:
+#
+# To setup a windows developer evironement install python2.7 then pip and use
+# "pip install <depencey>" for every dependency listed below.
+#
+# Dependecies that requires DLLs are not installable with pip install, for
+# them we added comments with links where you can find the installers.
+#
+# OpenERP on windows also require the pywin32, the binary can be found at
+# http://pywin32.sf.net
+#
+# Both python2.7 32bits and 64bits are known to work.