diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2013-05-14 16:07:03 -0400 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-05-19 06:13:01 -0700 |
commit | 10fbae681e072dd6359bf7a8c56e93c541c83b0b (patch) | |
tree | 738c3f6793855054741b08566de14ada64bbc7d4 /xlators/features/glupy/src | |
parent | 2b65c50554ec434a6ec9aecaea5d9885cf2aadf8 (diff) |
configure.ac: build glupy with installed python
IOW with more than just python2.6. Python2.7 is certainly what's on
the vast majority of non-RHEL systems that are out there. Also our
rpm.t regression test will build on epel-5 under mock; RHEL5 has
Python2.4.
Change-Id: I09c95c1fb6b3498e910ad239c4f0af7f786c3700
BUG: 961856
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/5007
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features/glupy/src')
-rw-r--r-- | xlators/features/glupy/src/Makefile.am | 4 | ||||
-rw-r--r-- | xlators/features/glupy/src/glupy.c | 11 |
2 files changed, 3 insertions, 12 deletions
diff --git a/xlators/features/glupy/src/Makefile.am b/xlators/features/glupy/src/Makefile.am index 931e5b741..960862839 100644 --- a/xlators/features/glupy/src/Makefile.am +++ b/xlators/features/glupy/src/Makefile.am @@ -9,11 +9,11 @@ glupy_PYTHON = gluster.py negative.py helloworld.py debug-trace.py glupy_la_LDFLAGS = -module -avoid-version -shared -nostartfiles glupy_la_SOURCES = glupy.c glupy_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \ - -lpthread -lpython2.6 + -lpthread -l$(BUILD_PYTHON_LIB) noinst_HEADERS = glupy.h -AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src +AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src -isystem $(BUILD_PYTHON_INC) AM_CFLAGS = -Wall -fno-strict-aliasing -DGLUSTER_PYTHON_PATH=\"$(glupydir)\" $(GF_CFLAGS) diff --git a/xlators/features/glupy/src/glupy.c b/xlators/features/glupy/src/glupy.c index fafea817c..dc86c0071 100644 --- a/xlators/features/glupy/src/glupy.c +++ b/xlators/features/glupy/src/glupy.c @@ -19,7 +19,7 @@ #include <ctype.h> #include <sys/uio.h> -#include <python2.6/Python.h> +#include <Python.h> #ifndef _CONFIG_H #define _CONFIG_H @@ -2424,19 +2424,10 @@ err_return: void fini (xlator_t *this) { - int i = 0; glupy_private_t *priv = this->private; if (!priv) return; - for (i = 0; i < GLUPY_N_FUNCS; ++i) { - if (priv->fops[i]) { - Py_DECREF(priv->fops[i]); - } - if (priv->cbks[i]) { - Py_DECREF(priv->fops[i]); - } - } Py_DECREF(priv->py_xlator); Py_DECREF(priv->py_module); this->private = NULL; |