Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa68d15

Browse files
committed
setupext.py: added numarray_inc_dirs for building against
numarray when not installed in standard location - ADS svn path=/trunk/matplotlib/; revision=1526
1 parent 21ab34f commit aa68d15

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
New entries should be added at the top
22

3+
2005-09-30 setupext.py: added numarray_inc_dirs for building against
4+
numarray when not installed in standard location - ADS
5+
36
2005-06-27 backend_svg.py: write figure width, height as int, not float.
47
Update to fix some of the pychecker warnings - SC
58

setupext.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171

7272
AGG_VERSION = 'agg23'
7373

74+
# for nonstandard installation/build with --prefix variable
75+
numarray_inc_dirs = ['']
76+
7477
class CleanUpFile:
7578
"""CleanUpFile deletes the specified filename when self is destroyed."""
7679
def __init__(self, name):
@@ -414,8 +417,8 @@ def build_agg(ext_modules, packages, numerix):
414417
deps.append('src/_na_backend_agg.cpp')
415418
module = Extension(
416419
'matplotlib.backends._na_backend_agg',
417-
deps
418-
,
420+
deps,
421+
include_dirs=numarray_inc_dirs,
419422
)
420423
module.extra_compile_args.append('-DNUMARRAY=1')
421424
add_agg_flags(module)
@@ -461,8 +464,8 @@ def build_image(ext_modules, packages, numerix):
461464
deps.extend(glob.glob('CXX/*.c'))
462465
module = Extension(
463466
'matplotlib._na_image',
464-
deps
465-
,
467+
deps,
468+
include_dirs=numarray_inc_dirs,
466469
)
467470
module.extra_compile_args.append('-DNUMARRAY=1')
468471
add_agg_flags(module)
@@ -519,7 +522,7 @@ def build_transforms(ext_modules, packages, numerix):
519522
['src/_na_transforms.cpp',
520523
'src/mplutils.cpp'] + cxx,
521524
libraries = ['stdc++', 'm'],
522-
include_dirs = ['src', '.'],
525+
include_dirs = ['src', '.']+numarray_inc_dirs,
523526
)
524527

525528
module.extra_compile_args.append("-DNUMARRAY=1")
@@ -566,6 +569,7 @@ def build_contour(ext_modules, packages, numerix):
566569
'matplotlib._na_cntr',
567570
[ 'src/_na_cntr.c',],
568571
#libraries = ['stdc++'],
572+
include_dirs=numarray_inc_dirs,
569573
)
570574
module.extra_compile_args.append('-DNUMARRAY=1')
571575
add_base_flags(module)
@@ -595,6 +599,7 @@ def build_gdk(ext_modules, packages, numerix):
595599
'matplotlib.backends._na_backend_gdk',
596600
['src/_na_backend_gdk.c', ],
597601
libraries = [],
602+
include_dirs=numarray_inc_dirs,
598603
)
599604
module.extra_compile_args.append('-DNUMARRAY=1')
600605
add_base_flags(module)

0 commit comments

Comments
 (0)