[pypy-commit] pypy pypy-pyarray: - Add cpyext implementation of Numpy PyArray_* C-API

shmuller noreply at buildbot.pypy.org
Mon Aug 26 22:02:41 CEST 2013


Author: Stefan H. Muller <shmueller2 at gmail.com>
Branch: pypy-pyarray
Changeset: r66332:01fc9f0596f2
Date: 2013-07-28 15:12 +0200
http://bitbucket.org/pypy/pypy/changeset/01fc9f0596f2/

Log:	- Add cpyext implementation of Numpy PyArray_* C-API
	   * pypy/module/cpyext/include/numpy/arrayobject.h
	   * pypy/module/cpyext/ndarrayobject.py
	   * pypy/module/cpyext/test/test_ndarrayobject.py
	- pypy/module/cpyext/api.py: copy_header_files() now copies the numpy
	subdirectory as well.
	- pypy/module/micronumpy/interp_dtype.py: DtypeCache.dtypes_by_num:
	   * Keep in dictionary form, since otherwise not all dtypes can be
	reached.
	- lib_pypy/numpy.py, lib_pypy/numpypy/__init__.py:
	   * "import numpy" now displays a warning but falls back to "import
	numpypy as numpy" *without* raising an ImportError.
	- pypy/module/cpyext/include/boolobject.h and complexobject.h:
	   * Add #define's for PyIntObject and PyComplexObject.

diff --git a/lib_pypy/numpy.py b/lib_pypy/numpy.py
--- a/lib_pypy/numpy.py
+++ b/lib_pypy/numpy.py
@@ -8,8 +8,6 @@
 
 import os
 
-__version__ = '1.7'
-
 def get_include():
     head, tail = os.path.split(os.path.dirname(os.path.abspath(__file__)))
     return os.path.join(head, 'include')


More information about the pypy-commit mailing list