예제 #1
0
def register_pyextensibletype():
    with open(os.path.join(deps_root, '__init__.py'), 'w'):
        pass
    with open(os.path.join(pyext_root, '__init__.py'), 'w'):
        pass

    shutil.copytree(pyext_root, pyext_dst)

    from deps.pyextensibletype import setupconfig
    exts = setupconfig.get_extensions(pyext_dst, "numba.pyextensibletype")

    return exts
예제 #2
0
파일: setup.py 프로젝트: jgors/numba
def register_pyextensibletype():
    with open(os.path.join(deps_root, '__init__.py'), 'w'):
        pass
    with open(os.path.join(pyext_root, '__init__.py'), 'w'):
        pass

    shutil.copytree(pyext_root, pyext_dst)

    from deps.pyextensibletype import setupconfig
    exts = setupconfig.get_extensions(pyext_dst, "numba.pyextensibletype")

    return exts
예제 #3
0
def register_pyextensibletype():
    import shutil

    root = os.path.dirname(os.path.abspath(__file__))
    deps_root = os.path.join(root, 'deps')
    pyext_root = os.path.join(deps_root, 'pyextensibletype')
    pyext_dst = os.path.join(root, "numba", "pyextensibletype")

    if os.path.exists(pyext_dst):
        shutil.rmtree(pyext_dst)

    with open(os.path.join(deps_root, '__init__.py'), 'w'):
        pass
    with open(os.path.join(pyext_root, '__init__.py'), 'w'):
        pass

    shutil.copytree(pyext_root, pyext_dst)

    from deps.pyextensibletype import setupconfig
    exts = setupconfig.get_extensions(pyext_dst, "numba.pyextensibletype")

    return exts