diff options
| author | Petr Viktorin <pviktori@redhat.com> | 2015-01-15 14:07:09 +0100 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2015-05-19 19:28:18 +0200 |
| commit | cd6615ecbd43d53fa353a18bd6db2291b086de2d (patch) | |
| tree | bd96a5ec93727d9376efa1112ab192d5eea31317 /lib/talloc/pytalloc-util.pc.in | |
| parent | 9f71b96ba0068ddc613b925cd1be6885a696e443 (diff) | |
| download | samba-cd6615ecbd43d53fa353a18bd6db2291b086de2d.tar.gz samba-cd6615ecbd43d53fa353a18bd6db2291b086de2d.tar.bz2 samba-cd6615ecbd43d53fa353a18bd6db2291b086de2d.zip | |
pytalloc: Port to Python 3
- Use native string for repr
- Use rich comparison
Removes the deprecated tp_compare in favor of tp_richcompare.
Disparate types cannot be compared (except for == and !=),
and True or False objects are returned explicitly.
- Use Py_TYPE instead of ob_type
This changed to conform to C aliasing rules,
see http://legacy.python.org/dev/peps/pep-3123/
- Don't provide CObject creation function
A PyCapsule based replacement would be possible,
but might not be necessary considering the function is
not used much.
- Use new-style module initialization
Build changes:
- Use ABI flag in the lib name and pkg-config template
- Use the SAMBA_CHECK_PYTHON macro for finding Python
Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'lib/talloc/pytalloc-util.pc.in')
| -rw-r--r-- | lib/talloc/pytalloc-util.pc.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/pytalloc-util.pc.in b/lib/talloc/pytalloc-util.pc.in index b7426bb1124..b87c94edf20 100644 --- a/lib/talloc/pytalloc-util.pc.in +++ b/lib/talloc/pytalloc-util.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: pytalloc-util Description: Utility functions for using talloc objects with Python Version: @TALLOC_VERSION@ -Libs: @LIB_RPATH@ -L${libdir} -lpytalloc-util +Libs: @LIB_RPATH@ -L${libdir} -lpytalloc-util@PYTHON_SO_ABI_FLAG@ Cflags: -I${includedir} URL: http://talloc.samba.org/ |
