83 lines
3.0 KiB
Diff
83 lines
3.0 KiB
Diff
diff -up matplotlib-1.0.1/MANIFEST.in.noagg matplotlib-1.0.1/MANIFEST.in
|
|
--- matplotlib-1.0.1/MANIFEST.in.noagg 2010-07-06 19:41:55.000000000 -0600
|
|
+++ matplotlib-1.0.1/MANIFEST.in 2011-05-20 15:45:38.337580769 -0600
|
|
@@ -18,6 +18,5 @@ recursive-include examples *
|
|
recursive-include doc *
|
|
recursive-include src *.cpp *.c *.h *.m
|
|
recursive-include CXX *.cxx *.hxx *.c *.h
|
|
-recursive-include agg24 *
|
|
recursive-include lib *
|
|
recursive-include ttconv *.cpp *.h
|
|
diff -up matplotlib-1.0.1/setupext.py.noagg matplotlib-1.0.1/setupext.py
|
|
--- matplotlib-1.0.1/setupext.py.noagg 2010-07-06 19:41:55.000000000 -0600
|
|
+++ matplotlib-1.0.1/setupext.py 2011-05-20 16:11:56.977764688 -0600
|
|
@@ -104,7 +104,6 @@ BUILT_GDK = False
|
|
BUILT_PATH = False
|
|
BUILT_TRI = False
|
|
|
|
-AGG_VERSION = 'agg24'
|
|
TCL_TK_CACHE = None
|
|
|
|
# for nonstandard installation/build with --prefix variable
|
|
@@ -551,7 +550,8 @@ def add_agg_flags(module):
|
|
# before adding the freetype flags since -z comes later
|
|
add_base_flags(module)
|
|
add_numpy_flags(module)
|
|
- module.include_dirs.extend(['src', '%s/include'%AGG_VERSION, '.'])
|
|
+ module.include_dirs.extend(['src', '/usr/include/agg2', '.'])
|
|
+ module.libraries.append('agg')
|
|
|
|
# put these later for correct link order
|
|
module.libraries.extend(std_libs)
|
|
@@ -1251,17 +1251,7 @@ def build_agg(ext_modules, packages):
|
|
global BUILT_AGG
|
|
if BUILT_AGG: return # only build it if you you haven't already
|
|
|
|
- agg = (
|
|
- 'agg_trans_affine.cpp',
|
|
- 'agg_bezier_arc.cpp',
|
|
- 'agg_curves.cpp',
|
|
- 'agg_vcgen_dash.cpp',
|
|
- 'agg_vcgen_stroke.cpp',
|
|
- 'agg_image_filters.cpp',
|
|
- )
|
|
-
|
|
- deps = ['%s/src/%s'%(AGG_VERSION, name) for name in agg]
|
|
- deps.extend(['src/mplutils.cpp', 'src/agg_py_transforms.cpp'])
|
|
+ deps = ['src/mplutils.cpp', 'src/agg_py_transforms.cpp']
|
|
deps.extend(glob.glob('CXX/*.cxx'))
|
|
deps.extend(glob.glob('CXX/*.c'))
|
|
temp_copy('src/_backend_agg.cpp', 'src/backend_agg.cpp')
|
|
@@ -1284,15 +1274,7 @@ def build_path(ext_modules, packages):
|
|
global BUILT_PATH
|
|
if BUILT_PATH: return # only build it if you you haven't already
|
|
|
|
- agg = (
|
|
- 'agg_curves.cpp',
|
|
- 'agg_bezier_arc.cpp',
|
|
- 'agg_trans_affine.cpp',
|
|
- 'agg_vcgen_stroke.cpp',
|
|
- )
|
|
-
|
|
- deps = ['%s/src/%s'%(AGG_VERSION, name) for name in agg]
|
|
- deps.extend(glob.glob('CXX/*.cxx'))
|
|
+ deps = glob.glob('CXX/*.cxx')
|
|
deps.extend(glob.glob('CXX/*.c'))
|
|
|
|
temp_copy('src/_path.cpp', 'src/path.cpp')
|
|
@@ -1317,14 +1299,8 @@ def build_image(ext_modules, packages):
|
|
global BUILT_IMAGE
|
|
if BUILT_IMAGE: return # only build it if you you haven't already
|
|
|
|
- agg = ('agg_trans_affine.cpp',
|
|
- 'agg_image_filters.cpp',
|
|
- 'agg_bezier_arc.cpp',
|
|
- )
|
|
-
|
|
temp_copy('src/_image.cpp', 'src/image.cpp')
|
|
deps = ['src/image.cpp', 'src/mplutils.cpp']
|
|
- deps.extend(['%s/src/%s'%(AGG_VERSION,name) for name in agg])
|
|
deps.extend(glob.glob('CXX/*.cxx'))
|
|
deps.extend(glob.glob('CXX/*.c'))
|
|
|