Currently gfapi.py only loads libraries by filename ending in ".so". On an installed system without development packages, the <lib>.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-Id: I71e38dabd3ade5dcf24813bf2fc25cda91b571c6 BUG: 1005146 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/5835 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
49 lines
776 B
Plaintext
49 lines
776 B
Plaintext
aclocal.m4
|
|
autom4te.cache
|
|
build
|
|
config.*
|
|
configure
|
|
depcomp
|
|
install-sh
|
|
ltmain.sh
|
|
Makefile.in
|
|
missing
|
|
py-compile
|
|
*.sw?
|
|
*~
|
|
*.lo
|
|
*.la
|
|
*.o
|
|
*.tar.gz
|
|
*.rpm
|
|
.libs
|
|
.deps
|
|
Makefile
|
|
stamp-h1
|
|
|
|
# Generated files
|
|
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
|
|
extras/who-wrote-glusterfs/gitdm
|
|
glusterfs-api.pc
|
|
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
|