search for: python_prefix

Displaying 20 results from an estimated 26 matches for "python_prefix".

2013 May 16
3
[PATCH] Use pkg-config for Python
...- python/Makefile.am | 2 +- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/configure.ac b/configure.ac index c809741..0aa1716 100644 --- a/configure.ac +++ b/configure.ac @@ -1106,7 +1106,6 @@ AM_CONDITIONAL([HAVE_PERL], dnl Check for Python (optional, for Python bindings). PYTHON_PREFIX= PYTHON_VERSION= -PYTHON_INCLUDEDIR= PYTHON_INSTALLDIR= AC_ARG_ENABLE([python], @@ -1117,23 +1116,30 @@ AS_IF([test "x$enable_python" != "xno"],[ AC_CHECK_PROG([PYTHON],[python],[python],[no]) if test "x$PYTHON" != "xno"; then - AC_MSG...
2011 Aug 22
1
[PATCH] hivex: Newer Python versions want parentheses around arguments of "print"
--- configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 261c44c..6c019e4 100644 --- a/configure.ac +++ b/configure.ac @@ -237,8 +237,8 @@ PYTHON_PREFIX= PYTHON_VERSION= if test "x$PYTHON" != "xno"; then - PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` - PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` + PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)&qu...
2011 May 03
2
[PATCH] [hivex] Use Python's distutils to determine include and site-packages directories.
...onfigure.ac | 46 ++++++++++++---------------------------------- 1 files changed, 12 insertions(+), 34 deletions(-) diff --git a/configure.ac b/configure.ac index b82a841..5805ddd 100644 --- a/configure.ac +++ b/configure.ac @@ -232,47 +232,25 @@ AC_CHECK_PROG([PYTHON],[python],[python],[no]) PYTHON_PREFIX= PYTHON_VERSION= -PYTHON_INCLUDEDIR= -PYTHON_SITE_PACKAGES= if test "x$PYTHON" != "xno"; then PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` - for d in \ - $...
2011 Aug 22
1
[PATCH 1/2] python: Don't build static library
--- python/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/python/Makefile.am b/python/Makefile.am index 5884762..82960d6 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -43,7 +43,7 @@ libguestfsmod_la_SOURCES = guestfs-py.c guestfs-py.h guestfs-py-byhand.c libguestfsmod_la_CFLAGS = -Wall -I$(PYTHON_INCLUDEDIR) \ -I$(top_srcdir)/src
2013 Jun 16
0
Re: [PATCH] Use pkg-config for Python
...([PYTHON_VERSION]) > + AC_DEFINE([HAVE_PYTHON],[1],[Python library found at compile time]) > + ],[ > + AC_MSG_WARN([python $PYTHON_VERSION not found]) > + ]) > + ]) > + AC_MSG_CHECKING([Python prefix]) > + PYTHON_PREFIX=`$PYTHON -c "import sys; print (sys.prefix)"` > + AC_MSG_RESULT([$PYTHON_PREFIX]) > > AC_ARG_WITH([python-installdir], > [AS_HELP_STRING([--with-python-installdir], > @@ -1171,11 +1177,10 @@ AS_IF([test "x$enable_python" != &...
2013 Jun 17
2
Re: [PATCH] Use pkg-config for Python
...AC_DEFINE([HAVE_PYTHON],[1],[Python library found at compile time]) > > + ],[ > > + AC_MSG_WARN([python $PYTHON_VERSION not found]) > > + ]) > > + ]) > > + AC_MSG_CHECKING([Python prefix]) > > + PYTHON_PREFIX=`$PYTHON -c "import sys; print (sys.prefix)"` > > + AC_MSG_RESULT([$PYTHON_PREFIX]) > > > > AC_ARG_WITH([python-installdir], > > [AS_HELP_STRING([--with-python-installdir], > > @@ -1171,11 +1177,10 @@ AS_IF([test "x...
2019 May 31
0
[PATCH] python: PYTHON_LIBS is not set in Python 3.8 (RHBZ#1705482).
...AC_SUBST([PYTHON_LIBS]) AC_SUBST([PYTHON_VERSION]) @@ -49,6 +52,7 @@ AS_IF([test "x$enable_python" != "xno"],[ AC_MSG_WARN([python $PYTHON_VERSION not found]) ]) ]) + AC_MSG_CHECKING([Python prefix]) PYTHON_PREFIX=`$PYTHON -c "import sys; print (sys.prefix)"` AC_MSG_RESULT([$PYTHON_PREFIX]) @@ -101,4 +105,4 @@ AS_IF([test "x$enable_python" != "xno"],[ AC_SUBST(PYTHON_EXT_SUFFIX) ]) AM_CONDITIONAL([HAVE_PYTHON], - [test "x$PYTHON" != "xno" &...
2020 Jan 15
1
[PATCH] build: define HAVE_PYCODESTYLE in all the cases
...,7 +88,6 @@ AS_IF([test "x$enable_python" != "xno"],[ AC_MSG_RESULT([$PYTHON_EXT_SUFFIX]) AC_CHECK_PROGS([PYCODESTYLE],[pycodestyle],[no]) - AM_CONDITIONAL([HAVE_PYCODESTYLE], [test "x$PYCODESTYLE" != "xno"]) fi AC_SUBST(PYTHON_PREFIX) @@ -98,3 +97,5 @@ AS_IF([test "x$enable_python" != "xno"],[ ]) AM_CONDITIONAL([HAVE_PYTHON], [test "x$PYTHON" != "xno" && test "x$have_python_module" = "x1" ]) +AM_CONDITIONAL([HAVE_PYCODESTYLE], + [test -n "$PYCODE...
2013 Jun 03
2
Python fix
This is the same fix I posted a few days ago for hivex (<1369351909-23821-3-git-send-email-bengen@hilluzination.de>). Cheers, -Hilko
2014 Nov 04
1
Re: [PATCH 7/9] python: fix detection of libpython features
...EFINE([HAVE_PYSTRING_ASSTRING],1, > [Found PyString_AsString in libpython.])], > - [],[$PYTHON_BLDLIBRARY]) > - > - LIBS="$old_LIBS" > + [],[$PYTHON_LIBS]) > fi > > AC_SUBST(PYTHON_PREFIX) > -- > 1.9.3 Will this break hillu's change (commit ad5b5f96da53)? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, t...
2013 May 23
3
hivex: Improvents in building Python bindings
Building against multiple versions of Python is a lot of fun as it is. Add autoconf/automake/libtool (and possible distribution-specific stuff) to the mix and things get really interesting: On Debian and Ubuntu, building against python 3.3 requires an extra include path as documented in <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692387>. As discussed in
2008 Dec 15
3
Problems compiling PostgreSQL package from FC8 on CentOS 5
...m -f src/tutorial/GNUmakefile pushd src/test/regress make all make MAX_CONNECTIONS=5 check make clean popd pushd src/test/regress make RPMTESTING=1 all popd PYTHON=/usr/bin/python python_version=`${PYTHON} -c "import sys; print sys.version[:3]"` python_prefix=`${PYTHON} -c "import sys; print sys.prefix"` python_includespec="-I${python_prefix}/include/python${python_version}" pushd PyGreSQL gcc $CFLAGS -fpic -shared -o _pgmodule.so ${python_includespec} -I../src/interfaces/libpq -I../src/include -L../src/interfaces/libpq...
2015 Oct 27
1
[PATCH] configure: Move language binding detection to separate files.
This commit starts to split our massive, monolithic configure.ac file into smaller files, using the m4_include mechanism to combine them. I don't know if we should really do this, so I'm open to comments about it. However: - Our configure.ac script is 1800+ lines long, and that's pretty long. - configure.ac lacks structure; splitting it up might improve that. - From what I read,
2020 Jan 09
9
[PATCH 0/7] Various Python cleanups.
Patch #7 depends on: https://www.redhat.com/archives/libguestfs/2020-January/msg00035.html No, Python < 3 support is not dropped yet, however it will be easier after this series. Pino Toscano (7): build: enforce a minimum Python version python: drop code for Python < 2.5 python: assume support for Capsules python: remove compile time check for PyString_AsString python: replace
2013 Jun 03
0
[PATCH] python: Build extension with PEP-3149 compliant suffix if defined.
...PYTHON_EXT_SUFFIX=$python_ext_suffix + fi + AC_MSG_RESULT([$PYTHON_EXT_SUFFIX]) + dnl Look for some optional symbols in libpython. old_LIBS="$LIBS" @@ -1183,6 +1191,7 @@ AS_IF([test "x$enable_python" != "xno"],[ AC_SUBST(PYTHON_PREFIX) AC_SUBST(PYTHON_VERSION) AC_SUBST(PYTHON_INSTALLDIR) + AC_SUBST(PYTHON_EXT_SUFFIX) ]) AM_CONDITIONAL([HAVE_PYTHON], [test "x$PYTHON" != "xno" && test "x$PYTHON_LIBS" != "x" ]) diff --git a/python/Makefile.am b/python/Makefile.am i...
2014 Nov 04
0
[PATCH 7/9] python: fix detection of libpython features
...g_AsString], [AC_DEFINE([HAVE_PYSTRING_ASSTRING],1, [Found PyString_AsString in libpython.])], - [],[$PYTHON_BLDLIBRARY]) - - LIBS="$old_LIBS" + [],[$PYTHON_LIBS]) fi AC_SUBST(PYTHON_PREFIX) -- 1.9.3
2020 Jan 10
0
[PATCH v2 8/8] python: add a pycodestyle test
...no"],[ PYTHON_EXT_SUFFIX=$python_ext_suffix fi AC_MSG_RESULT([$PYTHON_EXT_SUFFIX]) + + AC_CHECK_PROGS([PYCODESTYLE],[pycodestyle],[no]) + AM_CONDITIONAL([HAVE_PYCODESTYLE], [test "x$PYCODESTYLE" != "xno"]) fi AC_SUBST(PYTHON_PREFIX) diff --git a/python/Makefile.am b/python/Makefile.am index f0a4b55bd..7286ac906 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -38,6 +38,7 @@ EXTRA_DIST = \ setup.py.in \ run-bindtests \ run-python-tests \ + test-pycodestyle.sh \ t/__init__.py \ t/README \ t/test[0-9]*.py...
2020 Jan 10
0
[PATCH 7/7] python: add a pycodestyle test
...no"],[ PYTHON_EXT_SUFFIX=$python_ext_suffix fi AC_MSG_RESULT([$PYTHON_EXT_SUFFIX]) + + AC_CHECK_PROGS([PYCODESTYLE],[pycodestyle],[no]) + AM_CONDITIONAL([HAVE_PYCODESTYLE], [test "x$PYCODESTYLE" != "xno"]) fi AC_SUBST(PYTHON_PREFIX) diff --git a/python/Makefile.am b/python/Makefile.am index f0a4b55bd..7286ac906 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -38,6 +38,7 @@ EXTRA_DIST = \ setup.py.in \ run-bindtests \ run-python-tests \ + test-pycodestyle.sh \ t/__init__.py \ t/README \ t/test[0-9]*.py...
2005 Mar 28
4
Problem with bindings and MinGW
Message body follows: Hi, I'm interested in Xapian as a possible search engine for a Python project I'm developing. The reason why I write to you, is that I saw that you've been fixing bugs... so please excuse me if I'm bothering you: I saw no other contact on the xapian.org web pages. I've been spending the last two days trying to set up Python bindings for the library
2005 Mar 28
4
Problem with bindings and MinGW
Message body follows: Hi, I'm interested in Xapian as a possible search engine for a Python project I'm developing. The reason why I write to you, is that I saw that you've been fixing bugs... so please excuse me if I'm bothering you: I saw no other contact on the xapian.org web pages. I've been spending the last two days trying to set up Python bindings for the library