Did I find the right examples for you? yes no

All Samples(79)  |  Call(61)  |  Derive(0)  |  Import(18)

        def enabled(options, option):
    value = options[option]
    s = value.lower()
    if s in ('yes','true','1','y'):
        return True
    elif s in ('no', 'false', '0', 'n'):
        return False
    else:
        raise ValueError("Unknown value %s for option %s" % (value, option))
        


src/h/u/hue-HEAD/desktop/core/ext-py/MySQL-python-1.2.3c1/setup_posix.py   hue(Download)
def get_config():
    import os, sys
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/h/u/hue-HEAD/desktop/core/ext-py/MySQL-python-1.2.3c1/setup_windows.py   hue(Download)
def get_config():
    import os, sys, _winreg
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    # XXX static doesn't actually do anything on Windows
    if enabled(options, 'embedded'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/MySQL-python-1.2.3c1/setup_posix.py   hortonworks-sandbox(Download)
def get_config():
    import os, sys
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/MySQL-python-1.2.3c1/setup_windows.py   hortonworks-sandbox(Download)
def get_config():
    import os, sys, _winreg
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    # XXX static doesn't actually do anything on Windows
    if enabled(options, 'embedded'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/1/2/12tweet-HEAD/mysql/setup_posix.py   12tweet(Download)
def get_config():
    import os, sys
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/1/2/12tweet-HEAD/mysql/setup_windows.py   12tweet(Download)
def get_config():
    import os, sys, _winreg
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    # XXX static doesn't actually do anything on Windows
    if enabled(options, 'embedded'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/m/y/MySQL-python-1.2.5/setup_posix.py   MySQL-python(Download)
def get_config():
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    if 'mysql_config' in options:
        mysql_config.path = options['mysql_config']
 
    extra_objects = []
    static = enabled(options, 'static')
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/m/y/MySQL-for-Python-3-HEAD/setup_posix.py   MySQL-for-Python-3(Download)
def get_config():
    import os, sys
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/m/y/MySQLdb1-HEAD/setup_posix.py   MySQLdb1(Download)
def get_config():
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    if 'mysql_config' in options:
        mysql_config.path = options['mysql_config']
 
    extra_objects = []
    static = enabled(options, 'static')
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

src/m/o/moist-HEAD/setup_posix.py   moist(Download)
def get_config():
    from setup_common import get_metadata_and_options, enabled, create_release_file
 
    metadata, options = get_metadata_and_options()
 
    if 'mysql_config' in options:
        mysql_config.path = options['mysql_config']
 
    extra_objects = []
    static = enabled(options, 'static')
    extra_objects = []
    static = enabled(options, 'static')
    if enabled(options, 'embedded'):
        libs = mysql_config("libmysqld-libs")
        client = "mysqld"
    elif enabled(options, 'threadsafe'):
 
    name = "MySQL-python"
    if enabled(options, 'embedded'):
        name = name + "-embedded"
    metadata['name'] = name

  1 | 2  Next