1Port setup.py to setuptools.
2
3Upstream-Status: Submitted [https://github.com/ldo/dbussy/pull/53]
4Signed-off-by: Ross Burton <ross.burton@arm.com>
5
6diff --git a/setup.py b/setup.py
7index 4b9411e..da7ee7e 100644
8--- a/setup.py
9+++ b/setup.py
10@@ -8,33 +8,9 @@
11 # Written by Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
12 #-
13
14-import sys
15-import distutils.core
16-from distutils.command.build import \
17-    build as std_build
18+import setuptools
19
20-class my_build(std_build) :
21-    "customization of build to perform additional validation."
22-
23-    def run(self) :
24-        try :
25-            exec \
26-              (
27-                "async def dummy() :\n"
28-                "    pass\n"
29-                "#end dummy\n"
30-              )
31-        except SyntaxError :
32-            sys.stderr.write("This module requires Python 3.5 or later.\n")
33-            sys.exit(-1)
34-        #end try
35-        super().run()
36-    #end run
37-
38-#end my_build
39-
40-distutils.core.setup \
41-  (
42+setuptools.setup(
43     name = "DBussy",
44     version = "1.3",
45     description = "language bindings for libdbus, for Python 3.5 or later",
46@@ -43,9 +19,5 @@ distutils.core.setup \
47     author_email = "ldo@geek-central.gen.nz",
48     url = "https://github.com/ldo/dbussy",
49     license = "LGPL v2.1+",
50     py_modules = ["dbussy", "ravel"],
51-    cmdclass =
52-        {
53-            "build" : my_build,
54-        },
55-  )
56+)
57