~openerp-groupes/openobject-server/6.0-fix-setup-windows

« back to all changes in this revision

Viewing changes to setup.py

setup: The ssl certs should *not* be distributed.

The meaning of any SSL certificate (even self-signed) is that it uniquely
identifies the server. So, if we have a generic cert distributed with our
packaging, we break that. We could not even generate a cert at the "build"
stage of our server, because that would be included in the packages.

If anybody needs to run OpenERP with SSL, they will need to generate the
certificate at the target server, possibly using ssl-cert.cfg as a sample.

Also, the "ssl" directory under bin/ would confuse some pythonic code that
had tried to "import ssl" (eg. urllib.py).

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
            files.append((root, [join(root, name) for name in names]))
104
104
        #for root, _, names in os.walk('pixmaps'):
105
105
        #    files.append((root, [join(root, name) for name in names]))
106
 
        files.append(('.', [join('bin', 'import_xml.rng'),
107
 
                            join('bin', 'server.pkey'),
108
 
                            join('bin', 'server.cert')]))
 
106
        files.append(('.', [join('bin', 'import_xml.rng'),]))
109
107
    else:
110
108
        man_directory = join('share', 'man')
111
109
        files.append((join(man_directory, 'man1'), ['man/openerp-server.1']))
120
118
 
121
119
        openerp_site_packages = join(get_python_lib(prefix=''), 'openerp-server')
122
120
 
123
 
        files.append((openerp_site_packages, [join('bin', 'import_xml.rng'),
124
 
                                              join('bin', 'server.pkey'),
125
 
                                              join('bin', 'server.cert')]))
 
121
        files.append((openerp_site_packages, [join('bin', 'import_xml.rng'),]))
126
122
 
127
123
        if sys.version_info[0:2] == (2,5):
128
124
            files.append((openerp_site_packages, [ join('python25-compat','BaseHTTPServer.py'),