]> www.infradead.org Git - users/dhowells/kafs-utils.git/commit
setup: Sort out the Python setup so that it can build an RPM
authorDavid Howells <dhowells@redhat.com>
Wed, 23 Sep 2015 10:41:44 +0000 (11:41 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 23 Sep 2015 10:41:44 +0000 (11:41 +0100)
commita47d7ebda924e6f30f1664f38bfa7c322fad7887
treefd47d23301a3825312e2c414aaa890be97a3ab5b
parent81cc8820890e8dda1a1ec2a33052ce85a5e5684c
setup: Sort out the Python setup so that it can build an RPM

This does the following steps:

 (1) Adds a new command class to handle rxgen in the setup script so that the
     Python builder runs the XDR routine generation rather than needing a
     separate make step.

 (2) Moves everything that needs installing under kafs - which will be the
     name of the module.

 (3) Renames the module produced by the various C components to kafs.rpc and
     accesses it from python scripts with "import kafs.rpc as rpc" and then
     uses "rpc." instead of "kafs." to qualify accesses to the module.

Signed-off-by: David Howells <dhowells@redhat.com>
122 files changed:
MANIFEST.in [new file with mode: 0644]
Makefile
afs [moved from suite/afs with 98% similarity]
kafs/README.txt [new file with mode: 0644]
kafs/__init__.py [new file with mode: 0644]
kafs/af_rxrpc.c [moved from af_rxrpc.c with 100% similarity]
kafs/af_rxrpc.h [moved from af_rxrpc.h with 100% similarity]
kafs/apropos.py [moved from suite/apropos.py with 92% similarity]
kafs/argparse.py [moved from suite/argparse.py with 96% similarity]
kafs/bash-comp-helper.py [moved from suite/bash-comp-helper.py with 97% similarity]
kafs/commands/__init__.py [moved from suite/commands/__init__.py with 100% similarity]
kafs/commands/bos/__init__.py [moved from suite/commands/bos/__init__.py with 100% similarity]
kafs/commands/bos/addhost.py [moved from suite/commands/bos/addhost.py with 91% similarity]
kafs/commands/bos/addkey.py [moved from suite/commands/bos/addkey.py with 87% similarity]
kafs/commands/bos/adduser.py [moved from suite/commands/bos/adduser.py with 90% similarity]
kafs/commands/bos/create.py [moved from suite/commands/bos/create.py with 86% similarity]
kafs/commands/bos/delete.py [moved from suite/commands/bos/delete.py with 88% similarity]
kafs/commands/bos/exec.py [moved from suite/commands/bos/exec.py with 89% similarity]
kafs/commands/bos/getcell.py [moved from suite/commands/bos/getcell.py with 100% similarity]
kafs/commands/bos/getdate.py [moved from suite/commands/bos/getdate.py with 91% similarity]
kafs/commands/bos/getlog.py [moved from suite/commands/bos/getlog.py with 94% similarity]
kafs/commands/bos/getrestart.py [moved from suite/commands/bos/getrestart.py with 81% similarity]
kafs/commands/bos/getrestricted.py [moved from suite/commands/bos/getrestricted.py with 93% similarity]
kafs/commands/bos/install.py [moved from suite/commands/bos/install.py with 91% similarity]
kafs/commands/bos/listhosts.py [moved from suite/commands/bos/listhosts.py with 89% similarity]
kafs/commands/bos/listkeys.py [moved from suite/commands/bos/listkeys.py with 90% similarity]
kafs/commands/bos/listusers.py [moved from suite/commands/bos/listusers.py with 91% similarity]
kafs/commands/bos/prune.py [moved from suite/commands/bos/prune.py with 87% similarity]
kafs/commands/bos/removehost.py [moved from suite/commands/bos/removehost.py with 91% similarity]
kafs/commands/bos/removekey.py [moved from suite/commands/bos/removekey.py with 88% similarity]
kafs/commands/bos/removeuser.py [moved from suite/commands/bos/removeuser.py with 90% similarity]
kafs/commands/bos/restart.py [moved from suite/commands/bos/restart.py with 86% similarity]
kafs/commands/bos/setauth.py [moved from suite/commands/bos/setauth.py with 90% similarity]
kafs/commands/bos/setcellname.py [moved from suite/commands/bos/setcellname.py with 90% similarity]
kafs/commands/bos/setrestart.py [moved from suite/commands/bos/setrestart.py with 86% similarity]
kafs/commands/bos/setrestricted.py [moved from suite/commands/bos/setrestricted.py with 91% similarity]
kafs/commands/bos/shutdown.py [moved from suite/commands/bos/shutdown.py with 85% similarity]
kafs/commands/bos/start.py [moved from suite/commands/bos/start.py with 87% similarity]
kafs/commands/bos/startup.py [moved from suite/commands/bos/startup.py with 85% similarity]
kafs/commands/bos/status.py [moved from suite/commands/bos/status.py with 83% similarity]
kafs/commands/bos/stop.py [moved from suite/commands/bos/stop.py with 86% similarity]
kafs/commands/bos/uninstall.py [moved from suite/commands/bos/uninstall.py with 88% similarity]
kafs/commands/pts/__init__.py [moved from suite/commands/pts/__init__.py with 100% similarity]
kafs/commands/pts/adduser.py [moved from suite/commands/pts/adduser.py with 91% similarity]
kafs/commands/pts/cg.py [moved from suite/commands/pts/cg.py with 100% similarity]
kafs/commands/pts/check.py [moved from suite/commands/pts/check.py with 100% similarity]
kafs/commands/pts/chown.py [moved from suite/commands/pts/chown.py with 89% similarity]
kafs/commands/pts/creategroup.py [moved from suite/commands/pts/creategroup.py with 88% similarity]
kafs/commands/pts/createuser.py [moved from suite/commands/pts/createuser.py with 87% similarity]
kafs/commands/pts/cu.py [moved from suite/commands/pts/cu.py with 100% similarity]
kafs/commands/pts/d.py [moved from suite/commands/pts/d.py with 100% similarity]
kafs/commands/pts/delete.py [moved from suite/commands/pts/delete.py with 90% similarity]
kafs/commands/pts/e.py [moved from suite/commands/pts/e.py with 100% similarity]
kafs/commands/pts/examine.py [moved from suite/commands/pts/examine.py with 85% similarity]
kafs/commands/pts/g.py [moved from suite/commands/pts/g.py with 100% similarity]
kafs/commands/pts/groups.py [moved from suite/commands/pts/groups.py with 100% similarity]
kafs/commands/pts/listentries.py [moved from suite/commands/pts/listentries.py with 87% similarity]
kafs/commands/pts/listmax.py [moved from suite/commands/pts/listmax.py with 92% similarity]
kafs/commands/pts/listowned.py [moved from suite/commands/pts/listowned.py with 91% similarity]
kafs/commands/pts/m.py [moved from suite/commands/pts/m.py with 100% similarity]
kafs/commands/pts/membership.py [moved from suite/commands/pts/membership.py with 93% similarity]
kafs/commands/pts/removeuser.py [moved from suite/commands/pts/removeuser.py with 91% similarity]
kafs/commands/pts/rename.py [moved from suite/commands/pts/rename.py with 88% similarity]
kafs/commands/pts/setfields.py [moved from suite/commands/pts/setfields.py with 83% similarity]
kafs/commands/pts/setmax.py [moved from suite/commands/pts/setmax.py with 87% similarity]
kafs/commands/vos/__init__.py [moved from suite/commands/vos/__init__.py with 100% similarity]
kafs/commands/vos/create.py [moved from suite/commands/vos/create.py with 75% similarity]
kafs/commands/vos/examine.py [moved from suite/commands/vos/examine.py with 70% similarity]
kafs/commands/vos/listaddrs.py [moved from suite/commands/vos/listaddrs.py with 83% similarity]
kafs/commands/vos/listpart.py [moved from suite/commands/vos/listpart.py with 92% similarity]
kafs/commands/vos/listvldb.py [moved from suite/commands/vos/listvldb.py with 82% similarity]
kafs/commands/vos/listvol.py [moved from suite/commands/vos/listvol.py with 92% similarity]
kafs/commands/vos/partinfo.py [moved from suite/commands/vos/partinfo.py with 88% similarity]
kafs/commands/vos/status.py [moved from suite/commands/vos/status.py with 88% similarity]
kafs/exception.py [moved from suite/exception.py with 100% similarity]
kafs/help.py [moved from suite/help.py with 96% similarity]
kafs/kafs.c [moved from kafs.c with 91% similarity]
kafs/kafs.h [moved from kafs.h with 100% similarity]
kafs/lib/__init__.py [new file with mode: 0644]
kafs/lib/addrcache.py [moved from suite/lib/addrcache.py with 90% similarity]
kafs/lib/bosserver.py [moved from suite/lib/bosserver.py with 92% similarity]
kafs/lib/cell.py [moved from suite/lib/cell.py with 86% similarity]
kafs/lib/fileserver.py [moved from suite/lib/fileserver.py with 92% similarity]
kafs/lib/output.py [moved from suite/lib/output.py with 100% similarity]
kafs/lib/parse_setrestart_time.py [moved from suite/lib/parse_setrestart_time.py with 92% similarity]
kafs/lib/partition.py [moved from suite/lib/partition.py with 97% similarity]
kafs/lib/prcache.py [moved from suite/lib/prcache.py with 96% similarity]
kafs/lib/server.py [moved from suite/lib/server.py with 94% similarity]
kafs/lib/time.py [moved from suite/lib/time.py with 100% similarity]
kafs/lib/uuid.py [moved from suite/lib/uuid.py with 98% similarity]
kafs/lib/vlserver.py [moved from suite/lib/vlserver.py with 92% similarity]
kafs/lib/voldisplay.py [moved from suite/lib/voldisplay.py with 94% similarity]
kafs/lib/volserver.py [moved from suite/lib/volserver.py with 92% similarity]
kafs/main.py [moved from suite/main.py with 89% similarity]
kafs/py_passwd.c [moved from py_passwd.c with 100% similarity]
kafs/py_rxconn.c [moved from py_rxconn.c with 100% similarity]
kafs/py_rxgen.c [moved from py_rxgen.c with 99% similarity]
kafs/py_rxgen.h [moved from py_rxgen.h with 100% similarity]
kafs/py_rxsplit.c [moved from py_rxsplit.c with 99% similarity]
kafs/rpc-api/__init__.py [new file with mode: 0644]
kafs/rpc-api/afsuuid.h [moved from rpc-api/afsuuid.h with 100% similarity]
kafs/rpc-api/bos.xg [moved from rpc-api/bos.xg with 100% similarity]
kafs/rpc-api/cb.xg [moved from rpc-api/cb.xg with 100% similarity]
kafs/rpc-api/common.h [moved from rpc-api/common.h with 100% similarity]
kafs/rpc-api/fs.xg [moved from rpc-api/fs.xg with 100% similarity]
kafs/rpc-api/ka.xg [moved from rpc-api/ka.xg with 100% similarity]
kafs/rpc-api/pts.xg [moved from rpc-api/pts.xg with 100% similarity]
kafs/rpc-api/rxgen.xg [moved from rpc-api/rxgen.xg with 100% similarity]
kafs/rpc-api/rxkad.xg [moved from rpc-api/rxkad.xg with 100% similarity]
kafs/rpc-api/ubik.xg [moved from rpc-api/ubik.xg with 100% similarity]
kafs/rpc-api/vldb.xg [moved from rpc-api/vldb.xg with 100% similarity]
kafs/rpc-api/volumeserver.xg [moved from rpc-api/volumeserver.xg with 100% similarity]
kafs/rxgen.h [moved from rxgen.h with 100% similarity]
rxgen/emit_c_struct.py
rxgen/emit_c_sync_funcs.py
rxgen/emit_py_module.py
rxgen/emit_py_sync_funcs.py
rxgen/emit_py_types.py
rxgen/rxgen.py
rxgen/rxgen_bits.py
setup.py
vl-test.py