@@ -860,43 +860,17 @@ def build_contour(ext_modules, packages):
860
860
BUILT_CONTOUR = True
861
861
862
862
863
- def build_nxutils (ext_modules , packages , numerix ):
863
+ def build_nxutils (ext_modules , packages ):
864
864
global BUILT_NXUTILS
865
865
if BUILT_NXUTILS : return # only build it if you you haven't already
866
-
867
- if 'numarray' in numerix : # Build for numarray
868
- temp_copy ('src/nxutils.c' , 'src/_na_nxutils.c' )
869
- module = Extension (
870
- 'matplotlib._na_nxutils' ,
871
- [ 'src/_na_nxutils.c' ,],
872
- include_dirs = numarray_inc_dirs ,
873
- )
874
- module .extra_compile_args .append ('-DNUMARRAY=1' )
875
- add_base_flags (module )
876
- ext_modules .append (module )
877
-
878
- if 'Numeric' in numerix : # Build for Numeric
879
- temp_copy ('src/nxutils.c' , 'src/_nc_nxutils.c' )
880
- module = Extension (
881
- 'matplotlib._nc_nxutils' ,
882
- [ 'src/_nc_nxutils.c' ],
883
- include_dirs = numeric_inc_dirs ,
884
- )
885
- module .extra_compile_args .append ('-DNUMERIC=1' )
886
- add_base_flags (module )
887
- ext_modules .append (module )
888
- if 'numpy' in numerix : # Build for numpy
889
- temp_copy ('src/nxutils.c' , 'src/_ns_nxutils.c' )
890
- module = Extension (
891
- 'matplotlib._ns_nxutils' ,
892
- [ 'src/_ns_nxutils.c' ],
893
- include_dirs = numeric_inc_dirs ,
894
- )
895
- add_numpy_flags (module )
896
- module .extra_compile_args .append ('-DSCIPY=1' )
897
- add_base_flags (module )
898
- ext_modules .append (module )
899
-
866
+ module = Extension (
867
+ 'matplotlib.nxutils' ,
868
+ [ 'src/nxutils.c' ],
869
+ include_dirs = numeric_inc_dirs ,
870
+ )
871
+ add_numpy_flags (module )
872
+ add_base_flags (module )
873
+ ext_modules .append (module )
900
874
901
875
BUILT_NXUTILS = True
902
876
0 commit comments