From: David Howells <dhowells@redhat.com> Date: Wed, 2 Sep 2015 19:12:54 +0000 (+0100) Subject: Package setup script should be called setup.py X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f48b3250cb0c832012de246d87cbf4c7767e0737;p=users%2Fdhowells%2Fkafs-utils.git Package setup script should be called setup.py Package setup script should be called setup.py so call it that. Signed-off-by: David Howells <dhowells@redhat.com> --- diff --git a/Makefile b/Makefile index dc71d6b..121378d 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ RXGEN := ./rxgen/rxgen.pl $(wildcard ./rxgen/*.pm) GENERATED := afs_xg.c afs_xg.h afs_py.c afs_py.h pykafs.so: $(GENERATED) - python3 compile_pykafs.py build + python3 setup.py build #AFS_API := rpc-api/afsuuid.h rpc-api/vldb.xg AFS_API := $(sort $(wildcard rpc-api/*.h)) $(sort $(wildcard rpc-api/*.xg)) diff --git a/compile_pykafs.py b/compile_pykafs.py deleted file mode 100644 index aaba755..0000000 --- a/compile_pykafs.py +++ /dev/null @@ -1,21 +0,0 @@ -from distutils.core import setup, Extension -setup(name="kafs", version="0.1", - ext_modules=[Extension("kafs", - sources = [ "afs_xg.c", - "kafs.c", - "afs_py.c", - "py_passwd.c", - "py_rxgen.c", - "py_rxconn.c", - "py_rxsplit.c", - "af_rxrpc.c" - ], - extra_compile_args = [ - "-O0", - "-Wp,-U_FORTIFY_SOURCE", - ], - libraries = [ - "k5crypto", - "krb5" - ] - )]) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..da52937 --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +from distutils.core import setup, Extension + +# Example that has an rpcgen implementation that is run from setup.py +# +# http://git.linux-nfs.org/?p=iisaman/pynfs.git;a=tree;h=14b3085dcce30d941a7839241779639b80e6298b;hb=14b3085dcce30d941a7839241779639b80e6298b + +setup(name = "kafs", + version = "0.1", + description = "AFS filesystem management scripting and commands", + author = "David Howells", + author_email = "dhowells@redhat.com", + license = "GPLv2", + ext_modules = [Extension("kafs", + sources = [ "afs_xg.c", + "kafs.c", + "afs_py.c", + "py_passwd.c", + "py_rxgen.c", + "py_rxconn.c", + "py_rxsplit.c", + "af_rxrpc.c" + ], + extra_compile_args = [ + "-O0", + "-Wp,-U_FORTIFY_SOURCE", + ], + libraries = [ + "k5crypto", + "krb5" + ] + )])