mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
50 lines
1.8 KiB
Plaintext
50 lines
1.8 KiB
Plaintext
$NetBSD: patch-aa,v 1.7 2012/12/17 11:52:43 drochner Exp $
|
|
|
|
--- setupext.py.orig 2012-11-06 22:31:09.000000000 +0000
|
|
+++ setupext.py
|
|
@@ -108,13 +108,13 @@ options = {'display_status': True,
|
|
'provide_pytz': 'auto',
|
|
'provide_dateutil': 'auto',
|
|
'provide_six': 'auto',
|
|
- 'build_agg': True,
|
|
+ 'build_agg': False,
|
|
'build_gtk': 'auto',
|
|
'build_gtkagg': 'auto',
|
|
'build_tkagg': 'auto',
|
|
'build_macosx': 'auto',
|
|
- 'build_image': True,
|
|
- 'build_windowing': True,
|
|
+ 'build_image': False,
|
|
+ 'build_windowing': False,
|
|
'backend': None,
|
|
'basedirlist': None}
|
|
|
|
@@ -218,12 +218,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."""
|
|
@@ -379,11 +374,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('.')
|