summaryrefslogtreecommitdiff
path: root/graphics/py-matplotlib-gtk2/patches/patch-aa
blob: 4c84cab0a478d7d96f8409e33488b3498ca661f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$NetBSD: patch-aa,v 1.7 2012/04/07 11:32:29 joerg Exp $

--- setupext.py.orig	2010-07-07 01:41:55.000000000 +0000
+++ setupext.py
@@ -115,14 +115,14 @@ options = {'display_status': True,
            'verbose': False,
            'provide_pytz': 'auto',
            'provide_dateutil': 'auto',
-           'build_agg': True,
+           'build_agg': False,
            'build_gtk': 'auto',
            'build_gtkagg': 'auto',
            'build_tkagg': 'auto',
            'build_wxagg': 'auto',
            'build_macosx': 'auto',
-           'build_image': True,
-           'build_windowing': True,
+           'build_image': False,
+           'build_windowing': False,
            'backend': None,
            'basedirlist': None}
 
@@ -201,12 +201,8 @@ else:
     print_status = print_message = print_raw = print_line
 
 def run_child_process(cmd):
-    p = subprocess.Popen(cmd, shell=True,
-                         stdin=subprocess.PIPE,
-                         stdout=subprocess.PIPE,
-                         stderr=subprocess.STDOUT,
-                         close_fds=(sys.platform != 'win32'))
-    return p.stdin, p.stdout
+    import os
+    return None, os.popen(cmd + " 2>&1")
 
 class CleanUpFile:
     """CleanUpFile deletes the specified filename when self is destroyed."""
@@ -344,11 +340,8 @@ def check_for_libpng():
     return True
 
 def add_base_flags(module):
-    incdirs = filter(os.path.exists,
-                     [os.path.join(p, 'include') for p in basedirlist ])
-    libdirs = filter(os.path.exists,
-                     [os.path.join(p, 'lib')     for p in basedirlist ]+
-                     [os.path.join(p, 'lib64')     for p in basedirlist ] )
+    incdirs = [os.path.join(os.environ['LOCALBASE'], 'include')]
+    libdirs = [os.path.join(os.environ['LOCALBASE'], 'lib')]
 
     module.include_dirs.extend(incdirs)
     module.include_dirs.append('.')