Permalink
Browse files

pyjailhouse: Create pyjailhouse

Adds the project structure and bare-minimum files for Jailhouse's Python
API, pyjailhouse.  pyjailhouse is being developed to accomplish the following:
    1. To premote code reuse for Python scripts within Jailhouse
    2. To provide a Python API for interacting with the hypervisor itself, as
    an easier alternative to using shell scripts for interacting with it.

Signed-off-by: Chris Goldsworthy <christopher.goldsworthy@outlook.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information...
c4goldsw authored and jan-kiszka committed Jun 12, 2018
1 parent ab95e7a commit 3c4c907939f51a92a957328482b17309d134a65a
Showing with 29 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +6 −2 Makefile
  3. 0 pyjailhouse/__init__.py
  4. +22 −0 setup.py
View
@@ -28,3 +28,4 @@ hypervisor/arch/*/include/generated
*.s
ci/out
ci/*.tar.xz
*.pyc
View
@@ -48,8 +48,12 @@ firmware_install: $(DESTDIR)$(firmwaredir) modules
tool_inmates_install: $(DESTDIR)$(libexecdir)/jailhouse
$(INSTALL_DATA) inmates/tools/$(ARCH)/*.bin $<
install: modules_install firmware_install tool_inmates_install
pyjailhouse_install:
pip install --upgrade --force-reinstall --root=$(DESTDIR) .
install: modules_install firmware_install tool_inmates_install \
pyjailhouse_install
$(Q)$(MAKE) -C tools $@ src=.
.PHONY: modules_install install clean firmware_install modules tools docs \
docs_clean
docs_clean pyjailhouse_install
View
No changes.
View
@@ -0,0 +1,22 @@
#
# pyjailhouse, a python interface for the Jailhouse hypervisor
#
# Copyright (c) Christopher Goldsworthy, 2018
#
# This script is used to create project metadata when installing pyjailhouse
# using pip.
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
from setuptools import setup, find_packages
with open("VERSION") as version_file:
version = version_file.read().lstrip("v")
setup(name="pyjailhouse", version=version,
description="A Python interface for the Jailhouse Hypervisor",
license="GPLv2", url="https://github.com/siemens/jailhouse",
author_email="jailhouse-dev@googlegroups.com",
packages=find_packages())

0 comments on commit 3c4c907

Please sign in to comment.