]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
Package setup script should be called setup.py
authorDavid Howells <dhowells@redhat.com>
Wed, 2 Sep 2015 19:12:54 +0000 (20:12 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 2 Sep 2015 19:12:54 +0000 (20:12 +0100)
Package setup script should be called setup.py so call it that.

Signed-off-by: David Howells <dhowells@redhat.com>
Makefile
compile_pykafs.py [deleted file]
setup.py [new file with mode: 0644]

index dc71d6bb8d135eab2051788989a5b4392853beed..121378d28f1236627860d3bf9ed474e9c56e4237 100644 (file)
--- 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 (file)
index aaba755..0000000
+++ /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 (file)
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"
+                             ]
+                         )])