Skip to content

Commit 156f3b2

Browse files
committed
Make nxutils numpy-only
svn path=/trunk/matplotlib/; revision=3478
1 parent 806079e commit 156f3b2

File tree

4 files changed

+64
-158
lines changed

4 files changed

+64
-158
lines changed

lib/matplotlib/nxutils.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def havegtk():
277277

278278
if 1: # I don't think we need to make these optional
279279
build_contour(ext_modules, packages)
280-
build_nxutils(ext_modules, packages, NUMERIX)
280+
build_nxutils(ext_modules, packages)
281281

282282
for mod in ext_modules:
283283
if VERBOSE:

setupext.py

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -860,43 +860,17 @@ def build_contour(ext_modules, packages):
860860
BUILT_CONTOUR = True
861861

862862

863-
def build_nxutils(ext_modules, packages, numerix):
863+
def build_nxutils(ext_modules, packages):
864864
global BUILT_NXUTILS
865865
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)
900874

901875
BUILT_NXUTILS = True
902876

0 commit comments

Comments
 (0)