|
|
bbbf6c |
diff -up matplotlib-1.2.0/setupext.py.orig matplotlib-1.2.0/setupext.py
|
|
|
bbbf6c |
--- matplotlib-1.2.0/setupext.py.orig 2012-11-23 14:49:21.295712608 -0200
|
|
|
bbbf6c |
+++ matplotlib-1.2.0/setupext.py 2012-11-23 14:49:31.508712999 -0200
|
|
|
bbbf6c |
@@ -96,7 +96,6 @@ BUILT_GDK = False
|
|
|
bbbf6c |
BUILT_PATH = False
|
|
|
bbbf6c |
BUILT_TRI = False
|
|
|
bbbf6c |
|
|
|
bbbf6c |
-AGG_VERSION = 'agg24'
|
|
|
bbbf6c |
TCL_TK_CACHE = None
|
|
|
bbbf6c |
|
|
|
bbbf6c |
# for nonstandard installation/build with --prefix variable
|
|
|
bbbf6c |
@@ -621,7 +620,8 @@ def add_agg_flags(module):
|
|
|
bbbf6c |
# before adding the freetype flags since -z comes later
|
|
|
bbbf6c |
add_base_flags(module)
|
|
|
bbbf6c |
add_numpy_flags(module)
|
|
|
bbbf6c |
- module.include_dirs.extend(['src', '%s/include'%AGG_VERSION, '.'])
|
|
|
bbbf6c |
+ module.include_dirs.extend(['src', '/usr/include/agg2', '.'])
|
|
|
bbbf6c |
+ module.libraries.append('agg')
|
|
|
bbbf6c |
|
|
|
bbbf6c |
# put these later for correct link order
|
|
|
bbbf6c |
module.libraries.extend(std_libs)
|
|
|
bbbf6c |
@@ -1220,17 +1220,7 @@ def build_agg(ext_modules, packages):
|
|
|
bbbf6c |
global BUILT_AGG
|
|
|
bbbf6c |
if BUILT_AGG: return # only build it if you you haven't already
|
|
|
bbbf6c |
|
|
|
bbbf6c |
- agg = (
|
|
|
bbbf6c |
- 'agg_trans_affine.cpp',
|
|
|
bbbf6c |
- 'agg_bezier_arc.cpp',
|
|
|
bbbf6c |
- 'agg_curves.cpp',
|
|
|
bbbf6c |
- 'agg_vcgen_dash.cpp',
|
|
|
bbbf6c |
- 'agg_vcgen_stroke.cpp',
|
|
|
bbbf6c |
- 'agg_image_filters.cpp',
|
|
|
bbbf6c |
- )
|
|
|
bbbf6c |
-
|
|
|
bbbf6c |
- deps = ['%s/src/%s'%(AGG_VERSION, name) for name in agg]
|
|
|
bbbf6c |
- deps.extend(['src/mplutils.cpp', 'src/agg_py_transforms.cpp'])
|
|
|
bbbf6c |
+ deps = ['src/mplutils.cpp', 'src/agg_py_transforms.cpp']
|
|
|
bbbf6c |
deps.extend(glob.glob('CXX/*.cxx'))
|
|
|
bbbf6c |
deps.extend(glob.glob('CXX/*.c'))
|
|
|
bbbf6c |
temp_copy('src/_backend_agg.cpp', 'src/backend_agg.cpp')
|
|
|
bbbf6c |
@@ -1253,16 +1243,7 @@ def build_path(ext_modules, packages):
|
|
|
bbbf6c |
global BUILT_PATH
|
|
|
bbbf6c |
if BUILT_PATH: return # only build it if you you haven't already
|
|
|
bbbf6c |
|
|
|
bbbf6c |
- agg = (
|
|
|
bbbf6c |
- 'agg_vcgen_contour.cpp',
|
|
|
bbbf6c |
- 'agg_curves.cpp',
|
|
|
bbbf6c |
- 'agg_bezier_arc.cpp',
|
|
|
bbbf6c |
- 'agg_trans_affine.cpp',
|
|
|
bbbf6c |
- 'agg_vcgen_stroke.cpp',
|
|
|
bbbf6c |
- )
|
|
|
bbbf6c |
-
|
|
|
bbbf6c |
- deps = ['%s/src/%s'%(AGG_VERSION, name) for name in agg]
|
|
|
bbbf6c |
- deps.extend(glob.glob('CXX/*.cxx'))
|
|
|
bbbf6c |
+ deps = glob.glob('CXX/*.cxx')
|
|
|
bbbf6c |
deps.extend(glob.glob('CXX/*.c'))
|
|
|
bbbf6c |
|
|
|
bbbf6c |
temp_copy('src/_path.cpp', 'src/path.cpp')
|
|
|
bbbf6c |
@@ -1287,14 +1268,8 @@ def build_image(ext_modules, packages):
|
|
|
bbbf6c |
global BUILT_IMAGE
|
|
|
bbbf6c |
if BUILT_IMAGE: return # only build it if you you haven't already
|
|
|
bbbf6c |
|
|
|
bbbf6c |
- agg = ('agg_trans_affine.cpp',
|
|
|
bbbf6c |
- 'agg_image_filters.cpp',
|
|
|
bbbf6c |
- 'agg_bezier_arc.cpp',
|
|
|
bbbf6c |
- )
|
|
|
bbbf6c |
-
|
|
|
bbbf6c |
temp_copy('src/_image.cpp', 'src/image.cpp')
|
|
|
bbbf6c |
deps = ['src/image.cpp', 'src/mplutils.cpp']
|
|
|
bbbf6c |
- deps.extend(['%s/src/%s'%(AGG_VERSION,name) for name in agg])
|
|
|
bbbf6c |
deps.extend(glob.glob('CXX/*.cxx'))
|
|
|
bbbf6c |
deps.extend(glob.glob('CXX/*.c'))
|
|
|
bbbf6c |
|