pkgsrc/graphics/py-matplotlib/patches/patch-aa
drochner 05fc4c570d update to 1.1.0
many improvements, some cleanup, most notably:
-new graphics types and backends
-layout and legend improvements
-better 3d support
-Numerix support removed
2012-04-17 17:17:03 +00:00

32 lines
1.2 KiB
Text

$NetBSD: patch-aa,v 1.10 2012/04/17 17:17:03 drochner Exp $
--- setupext.py.orig 2011-10-06 14:50:23.000000000 +0000
+++ setupext.py
@@ -221,12 +221,7 @@ sysconfig.customize_compiler = my_custom
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
+ return None, os.popen(cmd + " 2>&1")
class CleanUpFile:
"""CleanUpFile deletes the specified filename when self is destroyed."""
@@ -364,11 +359,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('.')