[Libguestfs] [hivex] [PATCH 0/3] python: export version and hive types

Peter Wu peter at lekensteyn.nl
Sat Aug 9 15:33:03 UTC 2014


Hi,

Here are another set of patches that attempt to make the Python interface more
useful. First there is a patch to export the package version over the binary
interface.

The second patch is a prerequisite for the third and moves the hivex.py source
to a separate directory. This may need changes to your distro packaging. The
Debian packaging from Ubuntu 14.04 did however not require such changes as it
does not depend on the exact location of the .py files.

The third patch depends on the second one and adds a new module
`hivex.hive_types` to avoid duplicating the `REG_*` constants everywhere.

Tested against the following combinations:

 - Python 3.4.1 (Arch Linux x86_64, ./configure from git tree)
 - Python 2.7.6 + 3.4.0 (Ubuntu 14.04 x86_64, using Debian packaging)
 - Python 2.6.5 (Ubuntu 10.04 i686, ./configure from dist tarball)

These patches are based on the following two patches which have not yet been
merged into master (they are however independent of the functionality introduced
therein):

 - Add type checking, support integers as value
 - generator: Fix mixed tabs/spaces

If you prefer a git repo, have a look at the following for accumulated patches
https://github.com/Lekensteyn/hivex/compare/master...develop

Peter Wu (3):
  python: expose package version
  python: move module to separate directory
  python: export hive_types constants

 generator/generator.ml | 27 ++++++++++++++++++++++++++-
 python/Makefile.am     | 19 ++++++++++++++++---
 2 files changed, 42 insertions(+), 4 deletions(-)

-- 
2.0.2




More information about the Libguestfs mailing list