From bc08be76a8fca4a150642235a58c1970aa07d976 Mon Sep 17 00:00:00 2001 From: odebeir Date: Fri, 2 Nov 2012 09:50:07 +0100 Subject: [PATCH] rename rank.py to rank.pyx + adjust setup --- .../rank/{bilateral_rank.py => bilateral_rank.pyx} | 0 .../rank/{percentile_rank.py => percentile_rank.pyx} | 0 skimage/filter/rank/{rank.py => rank.pyx} | 0 skimage/filter/setup.py | 12 ++++++++++++ 4 files changed, 12 insertions(+) rename skimage/filter/rank/{bilateral_rank.py => bilateral_rank.pyx} (100%) rename skimage/filter/rank/{percentile_rank.py => percentile_rank.pyx} (100%) rename skimage/filter/rank/{rank.py => rank.pyx} (100%) diff --git a/skimage/filter/rank/bilateral_rank.py b/skimage/filter/rank/bilateral_rank.pyx similarity index 100% rename from skimage/filter/rank/bilateral_rank.py rename to skimage/filter/rank/bilateral_rank.pyx diff --git a/skimage/filter/rank/percentile_rank.py b/skimage/filter/rank/percentile_rank.pyx similarity index 100% rename from skimage/filter/rank/percentile_rank.py rename to skimage/filter/rank/percentile_rank.pyx diff --git a/skimage/filter/rank/rank.py b/skimage/filter/rank/rank.pyx similarity index 100% rename from skimage/filter/rank/rank.py rename to skimage/filter/rank/rank.pyx diff --git a/skimage/filter/setup.py b/skimage/filter/setup.py index 79755e87..56c1e9e5 100644 --- a/skimage/filter/setup.py +++ b/skimage/filter/setup.py @@ -21,6 +21,9 @@ def configuration(parent_package='', top_path=None): cython(['rank/_crank16.pyx'], working_path=base_path) cython(['rank/_crank16_percentiles.pyx'], working_path=base_path) cython(['rank/_crank16_bilateral.pyx'], working_path=base_path) + cython(['rank/rank.pyx'], working_path=base_path) + cython(['rank/percentile_rank.pyx'], working_path=base_path) + cython(['rank/bilateral_rank.pyx'], working_path=base_path) config.add_extension('_ctmf', sources=['_ctmf.c'], include_dirs=[get_numpy_include_dirs()]) @@ -43,6 +46,15 @@ def configuration(parent_package='', top_path=None): config.add_extension( 'rank/_crank16_bilateral', sources=['rank/_crank16_bilateral.c'], include_dirs=[get_numpy_include_dirs()]) + config.add_extension( + 'rank/rank', sources=['rank/rank.c'], + include_dirs=[get_numpy_include_dirs()]) + config.add_extension( + 'rank/percentile_rank', sources=['rank/percentile_rank.c'], + include_dirs=[get_numpy_include_dirs()]) + config.add_extension( + 'rank/bilateral_rank', sources=['rank/bilateral_rank.c'], + include_dirs=[get_numpy_include_dirs()]) return config