+if 'include_dirs' in os.environ:
+ update_dirs(cc.include_dirs, [path.strip() for path in os.environ.get('include_dirs').strip().split(":")])
+else:
+ update_dirs(cc.include_dirs, [os.path.join(sys.prefix, 'include'),
+ os.path.join(sys.prefix, 'include/freetype2'),
+ os.path.join(sys.prefix, 'include/fontconfig')])
+ if sys.platform == "darwin":
+ update_dirs(cc.include_dirs, ["/sw/include/freetype2", "/sw/lib/freetype2/include", "/sw/include", "/opt/local/include"])