Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
Emits a MismacthCAPIWarning if the C API version needs updating.

        def check_api_version(apiversion, codegen_dir):
    """Emits a MismacthCAPIWarning if the C API version needs updating."""
    curapi_hash, api_hash = get_api_versions(apiversion, codegen_dir)

    # If different hash, it means that the api .txt files in
    # codegen_dir have been updated without the API version being
    # updated. Any modification in those .txt files should be reflected
    # in the api and eventually abi versions.
    # To compute the checksum of the current API, use
    # code_generators/cversions.py script
    if not curapi_hash == api_hash:
        msg = "API mismatch detected, the C API version " \
              "numbers have to be updated. Current C api version is %d, " \
              "with checksum %s, but recorded checksum for C API version %d in " \
              "codegen_dir/cversions.txt is %s. If functions were added in the " \
              "C API, you have to update C_API_VERSION  in %s."
        warnings.warn(msg % (apiversion, curapi_hash, apiversion, api_hash,
                             __file__),
                      MismatchCAPIWarning)
        


src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/numpy/core/scons_support.py   Spherebot-Host-GUI(Download)
from code_generators.generate_ufunc_api import \
     do_generate_api as nowrap_do_generate_ufunc_api
from setup_common import check_api_version as _check_api_version
from setup_common import \
        LONG_DOUBLE_REPRESENTATION_SRC, pyod, long_double_representation
def check_api_version(apiversion):
    return _check_api_version(apiversion, pdirname(code_generators.__file__))
 
def split_ext(string):
    sp = string.rsplit( '.', 1)

src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/numpy/core/scons_support.py   nupic-linux64(Download)
from code_generators.generate_ufunc_api import \
     do_generate_api as nowrap_do_generate_ufunc_api
from setup_common import check_api_version as _check_api_version
from setup_common import \
        LONG_DOUBLE_REPRESENTATION_SRC, pyod, long_double_representation
def check_api_version(apiversion):
    return _check_api_version(apiversion, pdirname(code_generators.__file__))
 
def split_ext(string):
    sp = string.rsplit( '.', 1)

src/m/i/MissionPlanner-HEAD/Lib/site-packages/numpy/core/scons_support.py   MissionPlanner(Download)
from code_generators.generate_ufunc_api import \
     do_generate_api as nowrap_do_generate_ufunc_api
from setup_common import check_api_version as _check_api_version
 
from numscons.numdist import process_c_str as process_str
def check_api_version(apiversion):
    return _check_api_version(apiversion, pdirname(code_generators.__file__))
 
def split_ext(string):
    sp = string.rsplit( '.', 1)