Displaying 20 results from an estimated 37 matches for "python_version".
2013 May 16
3
[PATCH] Use pkg-config for Python
...le.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_CHECKING([Python...
2011 May 03
2
[PATCH] [hivex] Use Python's distutils to determine include and site-packages directories.
...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 \
- $PYTHON_PREFIX/inc...
2019 May 31
0
[PATCH] python: PYTHON_LIBS is not set in Python 3.8 (RHBZ#1705482).
....m4 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/m4/guestfs-python.m4 b/m4/guestfs-python.m4
index 7d4c991bb..befa9b102 100644
--- a/m4/guestfs-python.m4
+++ b/m4/guestfs-python.m4
@@ -33,14 +33,17 @@ AS_IF([test "x$enable_python" != "xno"],[
PYTHON_VERSION_MINOR=`$PYTHON -c "import sys; print (sys.version_info@<:@1@:>@)"`
PYTHON_VERSION="$PYTHON_VERSION_MAJOR.$PYTHON_VERSION_MINOR"
AC_MSG_RESULT([$PYTHON_VERSION])
+
# Debian: python-2.7.pc, python-3.2.pc
PKG_CHECK_MODULES([PYTHON], [python-"...
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)"`
+ PYTHON_...
2013 Jun 16
0
Re: [PATCH] Use pkg-config for Python
On Thu, May 16, Hilko Bengen wrote:
> AC_MSG_RESULT([$PYTHON_VERSION])
> -
> - AC_MSG_CHECKING([for Python include path])
> - if test -z "$PYTHON_INCLUDEDIR"; then
> - python_path=`$PYTHON -c "import distutils.sysconfig; \
> - print (distutils.sysconfig.get_python_inc ());&quo...
2018 Oct 01
2
[PATCH nbdkit] plugins: Add scripting language version to --dump-plugin output.
On Lua:
lua_version=5.3.4
On Perl:
perl_version=5.28.0
On Python 2:
python_version=2.7.15
On Python 3:
python_version=3.7.0
python_pep_384_abi_version=3
On Ruby 2.5.1p57:
ruby_api_version=2.5.0
On Tcl:
tcl_version=8.6
tcl_patch_level=8.6.8
---
plugins/lua/lua.c | 11 +++++++++++
plugins/perl/perl.c | 4 ++++
plugins/python/python.c | 8 ++++++++
plugi...
2013 Jun 17
2
Re: [PATCH] Use pkg-config for Python
On Sun, Jun 16, 2013 at 02:55:29PM +0200, Olaf Hering wrote:
> On Thu, May 16, Hilko Bengen wrote:
>
> > AC_MSG_RESULT([$PYTHON_VERSION])
> > -
> > - AC_MSG_CHECKING([for Python include path])
> > - if test -z "$PYTHON_INCLUDEDIR"; then
> > - python_path=`$PYTHON -c "import distutils.sysconfig; \
> > - print (distutils.sysconfi...
2005 Oct 17
2
libxenstat python bindings
...he language bindings
all-bindings: perl-bindings python-bindings
# The install-bindings target installs all the language bindings
install-bindings: install-perl-bindings install-python-bindings
$(BINDINGS): $(SHLIB) $(SHLIB_LINKS) src/xenstat.h
SWIG_FLAGS=-module xenstat -Isrc
# Python bindings
PYTHON_VERSION=2.3
PYTHON_FLAGS=-I/usr/include/python$(PYTHON_VERSION) -lpython$(PYTHON_VERSION)
$(PYSRC) $(PYMOD): bindings/swig/xenstat.i
swig -python $(SWIG_FLAGS) -outdir $(@D) -o $(PYSRC) $<
$(PYLIB): $(PYSRC)
$(CC) $(CFLAGS) $(LDFLAGS) $(PYTHON_FLAGS) -shared -lxenstat -o $@ $<
python-bindings: $(...
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
2020 Aug 02
2
State-of-the-art NLP models from R
...El hecho es que me pasa lo siguiente:
> library(reticulate)
> use_python("/usr/local/bin/python3.7")
> Sys.which(c("python3.7"))
python3.7
"/usr/local/bin/python3.7"
> py_install(packages = c("transformers"),
+ python_version = 'python3.7',
+ pip = TRUE)
Error: could not find a Python environment for /usr/bin/python
Vamos, que no puede encontrar donde está
Python en mi máquina. Pero yo creía haberlo dicho con:
*use_python("/usr/local/bin/python3.7")*, lo cu...
2019 Jan 07
2
Re: [PATCH] v2v: -o rhv-upload: decouple name of nbdkit python plugin
...t working. It
> is required if you want to use ‘-o rhv-upload’.
At least it fails ;)
One option I see is to export, as part of the nbdkit Python module
interface, the equivalent of sys.version_info: this way, the scripts
can detect which python version is the plugin linked with:
if nbdkit.python_version_info[0] != 3:
error("this script is for Python 3")
OTOH, it will not help with the above case, as there is a syntax error
even before a check can be reached...
--
Pino Toscano
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
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 Aug 02
2
State-of-the-art NLP models from R
...reticulate)
> > > use_python("/usr/local/bin/python3.7")
> > > Sys.which(c("python3.7"))
> > python3.7
> > "/usr/local/bin/python3.7"
> > > py_install(packages = c("transformers"),
> > + python_version = 'python3.7',
> > + pip = TRUE)
> > Error: could not find a Python environment for /usr/bin/python
> >
> > Vamos, que no puede encontrar donde
> está
> > Python en mi máquina. Pero yo creía haberlo dicho con:
>...
2020 Aug 03
2
State-of-the-art NLP models from R
...nda3/bin/python
> 2 /anaconda3/envs/r-reticulate/bin/python
> 3 /anaconda3/envs/r-tensorflow/bin/python
>
> py_install(
> packages = c("transformers"),
> envname = "r-reticulate",
> method = c("conda"),
> conda = "auto",
> python_version = NULL,
> pip = TRUE
> ) # Tampoco saco el resultado porque es
> igualmente largo, solo dejo la prueba
> # de que fue bien.
>
> Solving environment: ...working... done
>
> Por tanto, pa...
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
2018 Oct 01
0
Re: [PATCH nbdkit] plugins: Add scripting language version to --dump-plugin output.
On Monday, 1 October 2018 15:44:37 CEST Richard W.M. Jones wrote:
> On Lua:
>
> lua_version=5.3.4
>
> On Perl:
>
> perl_version=5.28.0
>
> On Python 2:
>
> python_version=2.7.15
>
> On Python 3:
>
> python_version=3.7.0
> python_pep_384_abi_version=3
>
> On Ruby 2.5.1p57:
>
> ruby_api_version=2.5.0
Should this be ruby_version, to be like the others?
Other than that, LGTM.
--
Pino Toscano
2019 Jan 07
0
Re: [PATCH] v2v: -o rhv-upload: decouple name of nbdkit python plugin
...see is to export, as part of the nbdkit Python module
> interface, the equivalent of sys.version_info: this way, the scripts
> can detect which python version is the plugin linked with:
nbdkit >= 1.8 exports the Python version in ‘--dump-plugin’ output:
$ nbdkit python --dump-plugin
...
python_version=2.7.15
And where it's available, the PEP-384 ABI version:
$ nbdkit python3 --dump-plugin
...
python_version=3.7.2
python_pep_384_abi_version=3
I will try to see if we can parse this easily ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my p...
2011 Dec 10
1
[PATCH] Fixed checks for libpython features
...n" != "xno"],
AC_MSG_RESULT([$PYTHON_INSTALLDIR])
fi
- dnl Look for libpython and some optional symbols in it.
+ dnl Look for some optional symbols in libpython.
old_LIBS="$LIBS"
- if test "x$PYTHON_VERSION_MAJOR" = "x3"; then
- dnl libpython3 is called "libpython3.Xmu.so"
- LIBPYTHON="python${PYTHON_VERSION}mu"
- else
- LIBPYTHON="python$PYTHON_VERSION"
- fi
- AC_CHECK_LIB([$LIBP...
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