def create_version_h(svn_version):
    # make sure we have a triple part version number
    if '-' in svn_version:
        while svn_version.count('.') < 2:
            svn_version = svn_version.replace('-', '.0-')
    else:
        while svn_version.count('.') < 2:
            svn_version += '.0'

    version_h = open(
        os.path.join(get_base_dir(), 'src', 'lxml', 'includes', 'lxml-version.h'),
        'w')
    version_h.write('''\
#ifndef LXML_VERSION_STRING
#define LXML_VERSION_STRING "%s"
#endif
''' % svn_version)
    version_h.close()
On Windows, temporarily route the server ip to itself.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/lxml-3.3.6/versioninfo.py/create_version_h--crossover with--dataset/ETHPy150Open chromium/web-page-replay/platformsettings.py/_WindowsPlatformSettings.setup_temporary_loopback_config