summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorwtli <liwt31@163.com>2018-11-11 11:37:34 +0800
committerwtli <liwt31@163.com>2018-11-11 11:37:34 +0800
commitcc069296f474ba15e393b5e37c219dd9ca6af27f (patch)
tree316a5754f4efeed6db394e070f8a9d57883e1f65 /numpy/core/setup.py
parent9a39877b9f9761051a8f86a9cfff392660fa7189 (diff)
downloadnumpy-cc069296f474ba15e393b5e37c219dd9ca6af27f.tar.gz
refactor sort head file
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 9c74ae6e4..efcacfb8e 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -677,7 +677,7 @@ def configuration(parent_package='',top_path=None):
join('src', 'npymath', 'npy_math_complex.c.src'),
join('src', 'npymath', 'halffloat.c')
]
-
+
# Must be true for CRT compilers but not MinGW/cygwin. See gh-9977.
is_msvc = platform.system() == 'Windows'
config.add_installed_library('npymath',
@@ -697,7 +697,8 @@ def configuration(parent_package='',top_path=None):
#######################################################################
# This library is created for the build but it is not installed
- npysort_sources = [join('src', 'npysort', 'quicksort.c.src'),
+ npysort_sources = [join('src', 'common', 'npy_sort.h.src'),
+ join('src', 'npysort', 'quicksort.c.src'),
join('src', 'npysort', 'mergesort.c.src'),
join('src', 'npysort', 'heapsort.c.src'),
join('src', 'common', 'npy_partition.h.src'),
@@ -908,10 +909,10 @@ def configuration(parent_package='',top_path=None):
join('src', 'umath', 'simd.inc.src'),
join('src', 'umath', 'override.h'),
join(codegen_dir, 'generate_ufunc_api.py'),
- ]
+ ]
config.add_extension('_multiarray_umath',
- sources=multiarray_src + umath_src +
+ sources=multiarray_src + umath_src +
npymath_sources + common_src +
[generate_config_h,
generate_numpyconfig_h,
@@ -921,7 +922,7 @@ def configuration(parent_package='',top_path=None):
generate_umath_c,
generate_ufunc_api,
],
- depends=deps + multiarray_deps + umath_deps +
+ depends=deps + multiarray_deps + umath_deps +
common_deps,
libraries=['npymath', 'npysort'],
extra_info=extra_info)