Debian Codegraph @

setup.py

raw symbols SCIP
1 #+
2 # Setuptools script to install DBussy. Make sure setuptools
3 # <https://setuptools.pypa.io/en/latest/index.html> is installed.
4 # Invoke from the command line in this directory as follows:
5 #
6 # python3 setup.py build
7 # sudo python3 setup.py install
8 #
9 # Written by Lawrence D'Oliveiro <[email protected]>.
10 #-
11
12 import sys
13 import setuptools
14 from setuptools.command.build_py import \
15 build_py as std_build_py
16
17 class my_build_py(std_build_py) :
18 "customization of build to perform additional validation."
19
20 def run(self) :
21 try :
22 exec \
23 (
24 "async def dummy() :\n"
25 " pass\n"
26 "#end dummy\n"
27 )
28 except SyntaxError :
29 sys.stderr.write("This module requires Python 3.5 or later.\n")
30 sys.exit(-1)
31 #end try
32 super().run()
33 #end run
34
35 #end my_build_py
36
37 setuptools.setup \
38 (
39 name = "DBussy",
40 version = "1.3",
41 description = "language bindings for libdbus, for Python 3.5 or later",
42 long_description = "language bindings for libdbus, for Python 3.5 or later",
43 author = "Lawrence D'Oliveiro",
44 author_email = "[email protected]",
45 url = "https://gitlab.com/ldo/dbussy",
46 license = "LGPL v2.1+",
47 py_modules = ["dbussy", "ravel"],
48 cmdclass =
49 {
50 "build_py" : my_build_py,
51 },
52 )