1. 14 3月, 2011 1 次提交
    • J
      python: Use hardcoded python path in libvirt.py · c51f0827
      Jiri Denemark 提交于
      This partially reverts (and fixes that part in a different way) commit
      e4384459, which replaced
      ``/usr/bin/python'' with ``/usr/bin/env python'' in all examples or
      scripts used during build to generate other files.
      
      However, python bindings module is compiled and linked against a
      specific python discovered or explicitly provided in configure phase.
      Thus libvirt.py, which is generated and installed into the system,
      should use the same python binary for which the module has been built.
      
      The hunk in Makefile.am replaces $(srcdir) with $(PYTHON), which might
      seem wrong but it is not. generator.py didn't use any of its command
      line arguments so passing $(srcdir) to it was redundant.
      c51f0827
  2. 20 4月, 2010 1 次提交
    • P
      Don't ship generated python/libvirt.? files. · 5d4009b0
      Philipp Hahn 提交于
      libvirt.c and libvirt.h are auto-generated files. Mentioning their names
      in *_SOURCES includes them in the distribution. During an out-of-tree
      build these shipped files are included instead of the auto-generated
      version, potentially breaking the build (as it happend in 0.8.0, because
      the shipped libvirt.h was missing the declaration for
      'libvirt_virDomainUpdateDeviceFlags')
      
      Use the nodist_*_SOURCES automake variable instead.
      Signed-off-by: NPhilipp Hahn <hahn@univention.de>
      5d4009b0
  3. 18 1月, 2010 1 次提交
    • J
      gnulib added a new syntax-check test: use $(VAR), not @VAR@ · eabb98b0
      Jim Meyering 提交于
      The latter is not officially "wrong", but *is* terribly anachronistic.
      I think automake documentation or comments call that syntax obsolescent.
      * cfg.mk (_makefile_at_at_check_exceptions): Exempt @SCHEMADIR@
      and @SYSCONFDIR@ uses -- there are no Makefile variables for those.
      * docs/Makefile.am: Use $(INSTALL), not @install@.
      * examples/dominfo/Makefile.am: Similar.
      * examples/domsuspend/Makefile.am: Similar.
      * proxy/Makefile.am: Similar.
      * python/Makefile.am: Similar.
      * python/tests/Makefile.am: Similar.
      * src/Makefile.am: Similar.
      * tests/Makefile.am: Similar.
      eabb98b0
  4. 07 1月, 2010 1 次提交
  5. 15 12月, 2009 1 次提交
    • M
      Fix install location for Python bindings · d0857c01
      Matthias Bolte 提交于
      Commit 66137344 changed the Python detection
      mechanism in configure to use AM_PATH_PYTHON. This results in a changed
      install location for the Python bindings, at least on Fedora 12 64bit systems.
      
      Before this commit libvirt.py and libvirtmod.so were installed to
      
        /usr/lib64/python2.6/site-packages
      
      After this commit they are installed to
      
        /usr/lib/python2.6/site-packages
      
      Mixed Python packages (containing *.py and *.so files) should be installed to
      the pyexecdir directory detected by AM_PATH_PYTHON.
      
      This restores the install location from before the AM_PATH_PYTHON commit.
      
      * configure.in: remove unnecessary pythondir export
      * python/Makefile.am: switch from pythondir to pyexecdir
      d0857c01
  6. 09 12月, 2009 1 次提交
    • M
      Use AM_PATH_PYTHON and python-config to detect Python configuration · 66137344
      Matthias Bolte 提交于
      Using AM_PATH_PYTHON solves the site-packages directory problem. At least
      in Ubuntu with Python 2.6 and later site-packages is renamed to dist-packages
      and site-packages is not part of sys.path anymore. So installing the libvirt
      Python bindings to site-packages renders them unusable, because they can be
      imported from there without manually including site-packages into sys.path.
      
      AM_PATH_PYTHON detects the correct site-packages/dist-packages directory.
      
      python-config --includes gives the correct include path for the Python header
      files. The old probing code stays there as fallback mechanism.
      
      * configure.in: use AM_PATH_PYTHON and python-config
      * python/Makefile.am: remove -I because PYTHON_INCLUDES contains it now
      66137344
  7. 29 9月, 2009 1 次提交
    • D
      Add public API definition for data stream handling · 182eba1b
      Daniel P. Berrange 提交于
      * include/libvirt/libvirt.h.in: Public API contract for
        virStreamPtr object
      * src/libvirt_public.syms: Export data stream APIs
      * src/libvirt_private.syms: Export internal helper APIs
      * src/libvirt.c: Data stream API driver dispatch
      * src/datatypes.h, src/datatypes.c: Internal helpers for virStreamPtr
        object
      * src/driver.h: Define internal driver API for streams
      * .x-sc_avoid_write: Ignore src/libvirt.c because it trips
        up on comments including write()
      * python/Makefile.am: Add libvirt-override-virStream.py
      * python/generator.py: Add rules for virStreamPtr class
      * python/typewrappers.h, python/typewrappers.c: Wrapper
        for virStreamPtr
      * docs/libvirt-api.xml, docs/libvirt-refs.xml: Regenerate
        with new APIs
      182eba1b
  8. 21 9月, 2009 1 次提交
    • D
      Re-arrange python generator to make it clear what's auto-generated · f991a006
      Daniel P. Berrange 提交于
      * README: New file describing what each file is used for
      * livvirt-override.c, libvirt-override.py, libvirt-override-api.xml,
        libvirt-override-virConnect.py: Manually written code overriding
        the generator
      * typewrappers.c, typewrappers.h: Data type wrappers
      * generator.py: Automatically pre-prend contents of libvirt-override.py
        to generated libvirt.py. Output into libvirt.py directly instead of
        libvirtclass.py. Don't generate libvirtclass.txt at all. Write C
        files into libvirt.c/.h directly
      * Makefile.am: Remove rule for creating libvirt.py from libvirt-override.py
        and libvirtclass.py, since generator.py does it directly
      f991a006
  9. 26 2月, 2009 1 次提交
  10. 18 12月, 2008 1 次提交
  11. 31 10月, 2008 1 次提交
    • D
      * python/Makefile.am python/generator.py python/libvir.c · 7b716fce
      Daniel Veillard 提交于
        python/libvir.py python/libvirt_wrap.h python/types.c:
        adds support for events from the python bindings, also
        improves the generator allowing to embbed per function
        definition files, patch by Ben Guthro
      * examples/domain-events/events-python/event-test.py: also
        adds a programming example
      Daniel
      7b716fce
  12. 01 10月, 2008 1 次提交
  13. 06 2月, 2008 1 次提交
  14. 30 11月, 2007 2 次提交
  15. 15 11月, 2007 1 次提交
    • J
      Make "make distcheck" work. · d5117af3
      Jim Meyering 提交于
      * Makefile.am: Expand some "*" wildcards, and (for now) disable
        the relatively unimportant, distuninstallcheck target.
        Fix a few redirect-directly-to-target bugs.
        Add a few $(srcdir)/ prefixes and add an uninstall-local rule.
      * docs/Makefile.am: More of the same.  Split some long lines.
      * python/Makefile.am: Likewise.
      * python/tests/Makefile.am: Likewise.
      * qemud/Makefile.am: Likewise.
      * tests/Makefile.am: Remove the directories already listed in SUBDIRS.
      * docs/examples/index.py: Adapt to produce the desired changes in
        docs/examples/Makefile.am. Also, sort *.c, so results are reproducible,
        and emit a comment telling emacs and vi that the file is read-only.
      * docs/examples/Makefile.am: Regenerate.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      d5117af3
  16. 26 6月, 2007 1 次提交
  17. 07 3月, 2007 1 次提交
  18. 02 3月, 2007 1 次提交
    • M
      Thu Mar 01 16:17:48 EST 2007 Mark McLoughlin <markmc@redhat.com> · 51d56098
      Mark McLoughlin 提交于
              * acinclude.m4: add LIBVIRT_COMPILE_WARNINGS, copied from
              GNOME but with a few more flags we'd been using.
      
              * configure.in: use that instead of setting CFLAGS
              directly.
      
              * proxy/Makefile.am, python/Makefile.am, qemud/Makefile.am,
                src/Makefile.am, tests/Makefile.am: use $(WARN_CFLAGS)
      51d56098
  19. 28 2月, 2006 2 次提交
    • D
      * NEWS configure.in libvirt.spec.in include/libvirt.h docs/*: · 71453235
      Daniel Veillard 提交于
        preparing release 0.0.6
      Daniel
      71453235
    • D
      * TODO: updated · 65bace17
      Daniel Veillard 提交于
      * python/Makefile.am python/generator.py python/libvir.c
        python/libvir.py: improved python binding, raise exception
        when an instance creation or lookup fails, and add support
        for the global error handler, per conn handler still needed
      * python/tests/error.py python/tests/Makefile.am: adding a
        regression test
      Daniel
      65bace17
  20. 15 2月, 2006 1 次提交
  21. 14 2月, 2006 1 次提交
  22. 10 2月, 2006 1 次提交
  23. 20 12月, 2005 1 次提交