Ticket #16819: patch-setup.py.diff

File patch-setup.py.diff, 1018 bytes (added by nerdling (Jeremy Lavergne), 16 years ago)

Added @PREFIX@ to be replaced by ${prefix} (use to be hardcoded as /opt/local)

  • setup.py

    old new  
    1212from os import popen3, mkdir
    1313from shutil import copy2
    1414
    15 LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['/usr/include/igraph', '/usr/local/include/igraph']
     15LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['@PREFIX@/include/igraph']
    1616LIBIGRAPH_FALLBACK_LIBRARIES = ['igraph']
    1717LIBIGRAPH_FALLBACK_LIBRARY_DIRS = []
    1818
     
    9494
    9595plat = get_platform()
    9696data_files = []
    97 if "macosx" in plat:
    98     data_files = [('/usr/lib', ['/usr/local/lib/libigraph.dylib', \
    99                                 '/usr/local/lib/libigraph.0.dylib', \
    100                                 '/usr/local/lib/libigraph.0.0.0.dylib'])]
     97#if "macosx" in plat:
     98#    data_files = [('/opt/local/lib', ['/opt/local/lib/libigraph.dylib', \
     99#                                '/opt/local/lib/libigraph.0.dylib', \
     100#                                '/opt/local/lib/libigraph.0.0.0.dylib'])]
    101101
    102102setup(name = 'python-igraph',
    103103      version = '0.5.1',