summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2017-03-24 17:22:55 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2017-03-24 18:04:27 +0100
commit88e8a06fb5d8e859b08f33d49dcd40a046d06d0b (patch)
treef4cdc57b2e33821b78a2fe19395def5e311272ab /numpy/core/setup.py
parent4e6e5fcccddca2cb737fde43c8e9771192e26038 (diff)
downloadnumpy-88e8a06fb5d8e859b08f33d49dcd40a046d06d0b.tar.gz
MAINT: remove obsolete single file compilation functions
The single file compilation mode has been removed so they are not needed anymore.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 89f65f41a..a22d1ef9d 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -701,28 +701,6 @@ def configuration(parent_package='',top_path=None):
# multiarray module #
#######################################################################
- # Multiarray version: this function is needed to build foo.c from foo.c.src
- # when foo.c is included in another file and as such not in the src
- # argument of build_ext command
- def generate_multiarray_templated_sources(ext, build_dir):
- from numpy.distutils.misc_util import get_cmd
-
- subpath = join('src', 'multiarray')
- sources = [join(local_dir, subpath, 'scalartypes.c.src'),
- join(local_dir, subpath, 'arraytypes.c.src'),
- join(local_dir, subpath, 'nditer_templ.c.src'),
- join(local_dir, subpath, 'lowlevel_strided_loops.c.src'),
- join(local_dir, subpath, 'einsum.c.src'),
- join(local_dir, 'src', 'private', 'templ_common.h.src')
- ]
-
- # numpy.distutils generate .c from .c.src in weird directories, we have
- # to add them there as they depend on the build_dir
- config.add_include_dirs(join(build_dir, subpath))
- cmd = get_cmd('build_src')
- cmd.ensure_finalized()
- cmd.template_sources(sources, ext)
-
multiarray_deps = [
join('src', 'multiarray', 'arrayobject.h'),
join('src', 'multiarray', 'arraytypes.h'),
@@ -856,26 +834,6 @@ def configuration(parent_package='',top_path=None):
# umath module #
#######################################################################
- # umath version: this function is needed to build foo.c from foo.c.src
- # when foo.c is included in another file and as such not in the src
- # argument of build_ext command
- def generate_umath_templated_sources(ext, build_dir):
- from numpy.distutils.misc_util import get_cmd
-
- subpath = join('src', 'umath')
- sources = [
- join(local_dir, subpath, 'loops.h.src'),
- join(local_dir, subpath, 'loops.c.src'),
- join(local_dir, subpath, 'scalarmath.c.src'),
- join(local_dir, subpath, 'simd.inc.src')]
-
- # numpy.distutils generate .c from .c.src in weird directories, we have
- # to add them there as they depend on the build_dir
- config.add_include_dirs(join(build_dir, subpath))
- cmd = get_cmd('build_src')
- cmd.ensure_finalized()
- cmd.template_sources(sources, ext)
-
def generate_umath_c(ext, build_dir):
target = join(build_dir, header_dir, '__umath_generated.c')
dir = os.path.dirname(target)