diff --git a/tools/python/Makefile b/tools/python/Makefile index 309c815352..469a4e9af0 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -56,13 +56,16 @@ refresh-po: $(POTFILE) .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()") -install: install-messages +install: install-messages install-dtd CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python" else -install: install-messages +install: install-messages install-dtd CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force endif +install-dtd: all + $(INSTALL) -m 755 xen/xm/create.dtd $(DESTDIR)/usr/share/xen + install-messages: all if which $(MSGFMT) >/dev/null ; then \ mkdir -p $(DESTDIR)$(NLSDIR); \ diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index 19ced84460..4e8d6c4603 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -72,7 +72,7 @@ class xenapi_create: def __init__(self): self.DEFAULT_STORAGE_REPOSITORY = get_default_SR() - self.dtd = "/usr/lib/python/xen/xm/create.dtd" + self.dtd = "/usr/share/xen/create.dtd" def create(self, filename=None, document=None, skipdtd=False): """