From: Bill J. <ja...@pa...> - 2008-07-28 23:26:35
|
Here's a patch to setup.py to get fuse-python to work on OS X 10.5 with Python 2.5. Bill --- orig-setup.py 2007-06-16 14:39:52.000000000 -0700 +++ setup.py 2008-07-26 16:48:55.000000000 -0700 @@ -46,8 +46,13 @@ #if not os.environ.has_key('PKG_CONFIG_PATH'): # os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig' +if sys.platform == 'darwin': + # MacFUSE installs things in standard places + cflags = "" + libs = "-L/usr/local/lib -lfuse -liconv" + # Find fuse compiler/linker flag via pkgconfig -if os.system('pkg-config --exists fuse 2> /dev/null') == 0: +elif os.system('pkg-config --exists fuse 2> /dev/null') == 0: pkgcfg = os.popen('pkg-config --cflags fuse') cflags = pkgcfg.readline().strip() pkgcfg.close() @@ -83,7 +88,7 @@ # libraries=[] # runtime_library_dirs=[] # extra_objects, extra_compile_args, extra_link_args -fusemodule = Extension('fuseparts._fusemodule', sources = ['fuseparts/_fusemodule.c'], +fusemodule = Extension('fuseparts._fuse', sources = ['fuseparts/_fusemodule.c'], include_dirs = iflags, extra_compile_args = extra_cflags, library_dirs = libdirs, |