pypy / lib_pypy / numpypy /

import core
from core import *
import lib
from lib import *

from __builtin__ import bool, int, long, float, complex, object, unicode, str
from core import abs, max, min

__version__ = '1.7.0'

import os
def get_include():
    Return the directory that contains the NumPy \\*.h header files.

    Extension modules that need to compile against NumPy should use this
    function to locate the appropriate include directory.

    When using ``distutils``, for example in ````.

        import numpy as np
        Extension('extension_name', ...

    import numpy
    if getattr(numpy, 'show_config', None) is None:
        # running from numpy source directory
        head, tail = os.path.split(os.path.dirname(os.path.abspath(__file__)))
        return os.path.join(head, '../include')
        # using installed numpy core headers
        import numpy.core as core
        d = os.path.join(os.path.dirname(core.__file__), 'include')
    return d

__all__ = ['__version__', 'get_include']
__all__ += core.__all__
__all__ += lib.__all__

#import sys
#sys.modules.setdefault('numpy', sys.modules['numpypy'])