[pylucene-dev] Re: experiences with --shared on Linux

Bill Janssen janssen at parc.com
Tue Mar 11 18:43:30 PDT 2008


> Ahhhh, that's where things get more complicated. setup.py doesn't know about 
> rpath.

Actually, it does.  Here's a patch.

% svn diff
Index: jcc/python.py
===================================================================
--- jcc/python.py	(revision 394)
+++ jcc/python.py	(working copy)
@@ -1323,6 +1323,7 @@
         'sources': sources
     }
     if shared:
+        args['runtime_library_dirs'] = [os.path.dirname(_jcc.__file__)]
         args['library_dirs'] = [os.path.dirname(_jcc.__file__)]
         args['libraries'] = ['jcc']
 
Bill


More information about the pylucene-dev mailing list