Displaying 4 results from an estimated 4 matches for "0e1ed20d8".
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
2020 Jan 09
0
[PATCH 5/7] python: replace guestfs_int_py_fromstringsize in Py2 branches
...omStringAndSize directly
instead of the guestfs_int_py_fromstringsize wrapper (which calls
PyString_FromStringAndSize anyway on Python < 3).
---
generator/python.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/generator/python.ml b/generator/python.ml
index 2a1a48fc0..0e1ed20d8 100644
--- a/generator/python.ml
+++ b/generator/python.ml
@@ -178,7 +178,7 @@ and generate_python_structs () =
pr " value = PyBytes_FromStringAndSize (%s->%s, %s->%s_len);\n"
typ name typ name;
pr "#else\n";
- pr "...
2020 Jan 09
0
[PATCH 6/7] python: stop including config.h
There is nothing in the Python bindings that require results from
configure, and gnulib is not used already.
---
generator/python.ml | 6 ------
python/handle.c | 2 --
2 files changed, 8 deletions(-)
diff --git a/generator/python.ml b/generator/python.ml
index 0e1ed20d8..fd297321e 100644
--- a/generator/python.ml
+++ b/generator/python.ml
@@ -119,8 +119,6 @@ and generate_python_structs () =
generate_header CStyle LGPLv2plus;
pr "\
-#include <config.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@@ -251,8 +24...
2020 Jan 10
2
Re: [PATCH 6/7] python: stop including config.h
...i) case, even if it happens to work right now.
Could we instead defend these with #ifdef HAVE_CONFIG_H? That way the
header shouldn't be used for PyPi and shouldn't need to be bundled (so
patch #7 would be OK).
Rich.
> diff --git a/generator/python.ml b/generator/python.ml
> index 0e1ed20d8..fd297321e 100644
> --- a/generator/python.ml
> +++ b/generator/python.ml
> @@ -119,8 +119,6 @@ and generate_python_structs () =
> generate_header CStyle LGPLv2plus;
>
> pr "\
> -#include <config.h>
> -
> #include <stdio.h>
> #include <std...