diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-10-20 10:17:39 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-01-14 20:04:29 -0600 |
commit | 1e15b43ae15af14127f62f05c84d69393881774a (patch) | |
tree | ea8f47072497ec085b4c045c88feaa4925668b83 /numpy/core/setup.py | |
parent | e2d35064df262efa6eb7dfe5bfc43160c73cf685 (diff) | |
download | numpy-1e15b43ae15af14127f62f05c84d69393881774a.tar.gz |
ENH: Move npreadtext into NumPy for faster text reading
This replaces `np.loadtxt` with the new textreader.
The file has a few minor cleanups compared to the npreadtext version.
npreadtext was started by Warren Weckesser for inclusion in NumPy
and then very heavily modified by me (Sebastian Berg) to improve it and
slim it down slightly.
Some parts of this code is inspired or even taken from the pandas parser
(mainly the integer parsers are fairly verbatim still).
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 22cac1e9a..3d7e958d3 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -868,6 +868,7 @@ def configuration(parent_package='',top_path=None): join('src', 'multiarray', 'typeinfo.h'), join('src', 'multiarray', 'usertypes.h'), join('src', 'multiarray', 'vdot.h'), + join('src', 'multiarray', 'textreading', 'readtext.h'), join('include', 'numpy', 'arrayobject.h'), join('include', 'numpy', '_neighborhood_iterator_imp.h'), join('include', 'numpy', 'npy_endian.h'), @@ -955,6 +956,14 @@ def configuration(parent_package='',top_path=None): join('src', 'npysort', 'selection.c.src'), join('src', 'common', 'npy_binsearch.h'), join('src', 'npysort', 'binsearch.cpp'), + join('src', 'multiarray', 'textreading', 'conversions.c'), + join('src', 'multiarray', 'textreading', 'field_types.c'), + join('src', 'multiarray', 'textreading', 'growth.c'), + join('src', 'multiarray', 'textreading', 'readtext.c'), + join('src', 'multiarray', 'textreading', 'rows.c'), + join('src', 'multiarray', 'textreading', 'stream_pyobject.c'), + join('src', 'multiarray', 'textreading', 'str_to_int.c'), + join('src', 'multiarray', 'textreading', 'tokenize.c.src'), ] ####################################################################### |