Ticket #46218: setup_py.diff

File setup_py.diff, 573 bytes (added by howarth.at.macports@…, 10 years ago)

revised setup_py.diff

  • setup.py

    else: # unix style (linux, mac, ...) 
    264264    try:
    265265        prefix_path = os.environ['PREFIX_PATH'].split(os.pathsep)
    266266    except KeyError:
    267         prefix_path = ["/usr", "/usr/X11", "/opt/local", "/sw"]
     267        prefix_path = ["@PREFIX@", "/usr", "/usr/X11"]
    268268
    269269    for prefix in prefix_path:
    270270        inc_dirs += filter(os.path.isdir, [prefix + s for s in ["/include", "/include/freetype2", "/include/libxml2"]])