From b2ee85b3e452678c330c25bf32c522090bb320fc Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 30 Sep 2013 09:05:14 +0200 Subject: gfapi.py: support dynamic loading of versioned libraries Currently gfapi.py only loads libraries by filename ending in ".so". On an installed system without development packages, the .so filenames are not available. ctypes.util.find_library() can be used to detect the files dynamically. In addition to this, also fixing some minor indention errors and package the library into the Python site-packages path. Python applications and libraries can now access libgfapi through 'from glusterfs import gfapi'. Change and review in the master branch: > Change-Id: I71e38dabd3ade5dcf24813bf2fc25cda91b571c6 > Signed-off-by: Niels de Vos > Reviewed-on: http://review.gluster.org/5835 > Reviewed-by: Kaleb KEITHLEY BUG: 1005146 Change-Id: Id7665fe5140111be7bf2038454fb775c70b15993 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/6581 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- .gitignore | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 3056ad8c6a6..9a2334c4982 100644 --- a/.gitignore +++ b/.gitignore @@ -24,18 +24,27 @@ stamp-h1 # Generated files contrib/uuid/uuid_types.h extras/init.d/glusterd.plist +api/examples/__init__.py* +api/examples/setup.py +argp-standalone/libargp.a +contrib/uuid/uuid_types.h extras/init.d/glusterd-Debian extras/init.d/glusterd-Redhat extras/init.d/glusterd-SuSE +extras/init.d/glusterd.plist extras/ocf/glusterd extras/ocf/volume -glusterfs.spec +extras/who-wrote-glusterfs/gitdm glusterfs-api.pc -libtool -xlators/mount/fuse/utils/mount.glusterfs -xlators/mount/fuse/utils/mount_glusterfs -argp-standalone/libargp.a +glusterfs.spec glusterfsd/src/glusterfsd +libgfchangelog.pc libglusterfs/src/spec.lex.c libglusterfs/src/y.tab.c libglusterfs/src/y.tab.h +libtool +run-tests.sh +ufo/.tox +ufo/test/unit/.coverage +xlators/mount/fuse/utils/mount.glusterfs +xlators/mount/fuse/utils/mount_glusterfs -- cgit