source: orange/install-scripts/mac/fink/matplotlib-py.patch @ 9179:601102019a60

Revision 9179:601102019a60, 1.9 KB checked in by mitar, 2 years ago (diff)

Added our own version of matplotlib Fink package so that it works on Mac OS X 10.7.

  • matplotlib-1.0.1

    diff -Nurd matplotlib-1.0.1.orig/setup.cfg matplotlib-1.0.1/setup.cfg
    old new  
     1[gui_support] 
     2gtk = True 
     3gtkagg = True 
     4tkagg = True 
     5wxagg = False 
     6macosx = True 
  • matplotlib-1.0.1

    diff -Nurd matplotlib-1.0.1.orig/setup.py matplotlib-1.0.1/setup.py
    old new  
    264264except NameError: additional_params = {} 
    265265 
    266266for mod in ext_modules: 
     267    mod.include_dirs.append('@PREFIX@/include') 
     268    mod.library_dirs.append('@PREFIX@/lib') 
     269  
    267270    if options['verbose']: 
    268271        mod.extra_compile_args.append('-DVERBOSE') 
    269272 
  • matplotlib-1.0.1

    diff -Nurd matplotlib-1.0.1.orig/setupext.py matplotlib-1.0.1/setupext.py
    old new  
    6363    # people to : 
    6464    #   make -f make.osx fetch deps mpl_build mpl_install 
    6565 
    66     'darwin' : [], 
     66    'darwin' : ['@PREFIX@/lib/freetype219', '@PREFIX@', 
     67                '/usr/X11', '/usr/X11R6', '/usr'], 
    6768 
    6869    'freebsd4' : ['/usr/local', '/usr'], 
    6970    'freebsd5' : ['/usr/local', '/usr'], 
     
    10111012        module.library_dirs.extend([os.path.join(sys.prefix, 'dlls')]) 
    10121013 
    10131014    elif sys.platform == 'darwin': 
     1015        tcl_inc = "@PREFIX@/include" 
     1016        tk_inc = "@PREFIX@/include" 
     1017        tcl_lib = "@PREFIX@/lib" 
     1018        tk_lib = "@PREFIX@/lib" 
     1019        tk_ver = "" 
     1020        # Add final versions of directories and libraries to module lists 
     1021        module.include_dirs.extend([tcl_inc, tk_inc]) 
     1022        module.library_dirs.extend([tcl_lib, tk_lib]) 
     1023        module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver]) 
     1024 
     1025    elif False: 
    10141026        # this config section lifted directly from Imaging - thanks to 
    10151027        # the effbot! 
    10161028 
Note: See TracBrowser for help on using the repository browser.