--- setupext.py 2009-08-23 06:27:32.000000000 +0100
+++ setupext.py 2010-01-04 22:59:27.000000000 +0000
'linux2' : ['/usr/local', '/usr'],
'linux' : ['/usr/local', '/usr',],
'cygwin' : ['/usr/local', '/usr',],
- '_darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local',
- # it appears builds with darwin are broken because of all the
- # different flags the deps can be compile with, so I am pushing
- # make -f make.osx fetch deps mpl_build mpl_install
+ 'darwin' : ['@@MPORTS_PREFIX@@'],
'freebsd4' : ['/usr/local', '/usr'],
'freebsd5' : ['/usr/local', '/usr'],
'freebsd6' : ['/usr/local', '/usr'],
[os.path.join(p, 'lib64') for p in basedir[sys.platform] ] )
module.include_dirs.extend(incdirs)
+ module.include_dirs.extend(['@@MPORTS_PREFIX@@/include/python2.7'])
module.include_dirs.append('.')
module.library_dirs.extend(libdirs)
return tcl_lib, tcl_inc, tk_lib, tk_inc
def hardcoded_tcl_config():
- tcl_inc = "/usr/local/include"
- tk_inc = "/usr/local/include"
- tcl_lib = "/usr/local/lib"
- tk_lib = "/usr/local/lib"
+ tcl_inc = "@@MPORTS_PREFIX@@/include"
+ tk_inc = "@@MPORTS_PREFIX@@/include"
+ tcl_lib = "@@MPORTS_PREFIX@@/lib"
+ tk_lib = "@@MPORTS_PREFIX@@/lib"
return tcl_lib, tcl_inc, tk_lib, tk_inc
def add_tk_flags(module):
raise RuntimeError('No tk/win32 support for this python version yet')
module.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
- elif sys.platform == 'darwin':
- # this config section lifted directly from Imaging - thanks to
- # First test for a MacOSX/darwin framework install
- from os.path import join, exists
- join(os.getenv('HOME'), '/Library/Frameworks'),
- '/System/Library/Frameworks/',
- # Find the directory that contains the Tcl.framework and Tk.framework
- # XXX distutils should support -F!
- for F in framework_dirs: