Skip to content

Commit

Permalink
Use a more conventional layout for python packages
Browse files Browse the repository at this point in the history
We will aim for:

python_sitelib/xapi/__init__py: common functions
python_sitelib/xapi/datapath.py
python_sitelib/xapi/volume.py
python_sitelib/xapi/plugin.py

Signed-off-by: David Scott <dave.scott@citrix.com>
  • Loading branch information
David Scott committed Apr 27, 2015
1 parent 9d18a30 commit f567731
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 205 deletions.
2 changes: 1 addition & 1 deletion generator/src/main.ml
Expand Up @@ -21,7 +21,7 @@ let _ =

List.iter
(fun api ->
with_output_file (Printf.sprintf "python/%s.py" api.Interfaces.name)
with_output_file (Printf.sprintf "python/xapi/%s.py" api.Interfaces.name)
(fun oc ->
let idents, api = resolve_refs_in_api api in
output_string oc (Python.of_interfaces idents api |> Python.string_of_ts)
Expand Down
10 changes: 8 additions & 2 deletions python/setup.py
@@ -1,3 +1,9 @@
from distutils.core import setup
setup (name = "xapi-storage", version = "0.1",
py_modules = ["d", "p", "v", "xapi"])
setup (name = "xapi-storage",
version='0.1',
description='Xapi storage interface',
author='David Scott',
author_email='dave@recoil.org',
url='https://github.com/djs55/xapi-storage/',
packages=['xapi'],
)
202 changes: 0 additions & 202 deletions python/xapi.py

This file was deleted.

0 comments on commit f567731

Please sign in to comment.