Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(488)  |  Call(352)  |  Derive(0)  |  Import(136)
Return the value of a single variable using the dictionary
returned by 'get_config_vars()'.  Equivalent to
get_config_vars().get(name)

        def get_config_var(name):
    """Return the value of a single variable using the dictionary
    returned by 'get_config_vars()'.  Equivalent to
    get_config_vars().get(name)
    """
    return get_config_vars().get(name)
        


src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/modutils.py   modern-python-example(Download)
from os.path import splitext, join, abspath, isdir, dirname, exists, basename
from imp import find_module, load_module, C_BUILTIN, PY_COMPILED, PKG_DIRECTORY
from distutils.sysconfig import get_config_var, get_python_lib, get_python_version
 
try:
    PY_COMPILED_EXTS = ('so',)
    # extend lib dir with some arch-dependant paths
    STD_LIB_DIR = join(get_config_var("LIBDIR"), "python%s" % get_python_version())
 
BUILTIN_MODULES = dict(zip(sys.builtin_module_names,

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/PublicKey/test_RSA.py   modern-python-example(Download)
        tests += list_test_cases(RSAFastMathTest)
    except ImportError:
        from distutils.sysconfig import get_config_var
        import inspect
        _fm_path = os.path.normpath(os.path.dirname(os.path.abspath(
            inspect.getfile(inspect.currentframe())))
            +"/../../PublicKey/_fastmath"+get_config_var("SO"))

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/PublicKey/test_DSA.py   modern-python-example(Download)
        tests += list_test_cases(DSAFastMathTest)
    except ImportError:
        from distutils.sysconfig import get_config_var
        import inspect
        _fm_path = os.path.normpath(os.path.dirname(os.path.abspath(
            inspect.getfile(inspect.currentframe())))
            +"/../../PublicKey/_fastmath"+get_config_var("SO"))

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/numpy_test.py   PySide(Download)
import sys
 
try:
    from distutils import sysconfig
    if bool(sysconfig.get_config_var('Py_DEBUG')):

src/s/h/Shiboken-1.2.2/sources/shiboken/tests/samplebinding/numpy_test.py   Shiboken(Download)
import sys
 
try:
    from distutils import sysconfig
    if bool(sysconfig.get_config_var('Py_DEBUG')):

src/b/e/Bento-HEAD/bento/private/_yaku/examples/example5.py   Bento(Download)
def get_clang_env(ctx):
    from distutils.sysconfig import get_config_var, get_python_inc
    env = {
            "CC": ["clang"],
            "CPPPATH": [get_python_inc()],

src/y/a/yaku-HEAD/examples/example5.py   yaku(Download)
def get_clang_env(ctx):
    from distutils.sysconfig import get_config_var, get_python_inc
    env = {
            "CC": ["clang"],
            "CPPPATH": [get_python_inc()],

src/u/w/uwsgi-2.0.4/plugins/python/uwsgiplugin.py   uWSGI(Download)
def get_python_version():
    version = sysconfig.get_config_var('VERSION')
    try:
        version = version + sys.abiflags
    except:
    LIBS = sysconfig.get_config_var('LIBS').split() + sysconfig.get_config_var('SYSLIBS').split()
    # check if it is a non-shared build (but please, add --enable-shared to your python's ./configure script)
    if not sysconfig.get_config_var('Py_ENABLE_SHARED'):
        libdir = sysconfig.get_config_var('LIBPL')
        # libdir does not exists, try to get it from the venv
        uname = os.uname()
        if uname[4].startswith('arm'):
            libpath = '%s/%s' % (libdir, sysconfig.get_config_var('LIBRARY'))
            if not os.path.exists(libpath): 
                libpath = '%s/%s' % (libdir, sysconfig.get_config_var('LDLIBRARY'))

src/s/h/shedskin-HEAD/shedskin/makefile.py   shedskin(Download)
def generate_makefile(gx):
    if sys.platform == 'win32':
        pyver = '%d%d' % sys.version_info[:2]
        prefix = sysconfig.get_config_var('prefix')
    else:
        pyver = sysconfig.get_config_var('VERSION') or sysconfig.get_python_version()
 
        if sys.platform == 'darwin':
            ldflags = sysconfig.get_config_var('BASECFLAGS')
        else:
            ldflags = (sysconfig.get_config_var('LIBS') or '') + ' '
            ldflags += (sysconfig.get_config_var('SYSLIBS') or '') + ' '

src/s/k/SkeinFactory-HEAD/shedskin/shedskin/cpp.py   SkeinFactory(Download)
        prefix = sysconfig.get_config_var('prefix').replace('\\', '/')
    else:
        pyver = sysconfig.get_config_var('VERSION') or sysconfig.get_python_version()
        includes = '-I' + sysconfig.get_python_inc() + ' '
        if not getgx().pypy:
            includes += '-I' + sysconfig.get_python_inc(plat_specific=True)
 
        if sys.platform == 'darwin':
            ldflags = sysconfig.get_config_var('BASECFLAGS')
            ldflags = sysconfig.get_config_var('BASECFLAGS')
        else:
            ldflags = (sysconfig.get_config_var('LIBS') or '') + ' '
            ldflags += (sysconfig.get_config_var('SYSLIBS') or '') + ' '
            if not getgx().pypy:
                ldflags += '-lpython'+pyver
                if not sysconfig.get_config_var('Py_ENABLE_SHARED'):

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next