diff options
author | Ross Burton <ross@burtonini.com> | 2022-01-14 15:31:01 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-01-18 08:59:58 -0800 |
commit | d32bb7dbc08ea979138776bf4fb4d794b70f9b96 (patch) | |
tree | d7e01885e56ffe3865b4e443f8540f018d07518f /meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch | |
parent | 4de2215997a060ad719ef79ea888428fd072c55f (diff) | |
download | meta-openembedded-d32bb7dbc08ea979138776bf4fb4d794b70f9b96.tar.gz |
python3-dbussy: port to setuptools
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch b/meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch new file mode 100644 index 0000000000..3506f76d02 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | Port setup.py to setuptools. | ||
2 | |||
3 | Upstream-Status: Submitted [https://github.com/ldo/dbussy/pull/53] | ||
4 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
5 | |||
6 | diff --git a/setup.py b/setup.py | ||
7 | index 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 | +) | ||