diff options
-rw-r--r-- | meta-python/recipes-devtools/python/python3-dbussy/setuptools.patch | 56 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-dbussy_1.3.bb | 6 |
2 files changed, 59 insertions, 3 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 | +) | ||
diff --git a/meta-python/recipes-devtools/python/python3-dbussy_1.3.bb b/meta-python/recipes-devtools/python/python3-dbussy_1.3.bb index 061893df3e..0cf9dc8a7d 100644 --- a/meta-python/recipes-devtools/python/python3-dbussy_1.3.bb +++ b/meta-python/recipes-devtools/python/python3-dbussy_1.3.bb | |||
@@ -3,13 +3,14 @@ HOMEPAGE = "https://github.com/ldo/dbussy" | |||
3 | LICENSE = "LGPLv2.1" | 3 | LICENSE = "LGPLv2.1" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7" |
5 | 5 | ||
6 | SRC_URI = "git://github.com/ldo/dbussy.git;branch=master;protocol=https" | 6 | SRC_URI = "git://github.com/ldo/dbussy.git;branch=master;protocol=https \ |
7 | file://setuptools.patch" | ||
7 | 8 | ||
8 | SRCREV = "37ede4242b48def73ada46c2747a4c5cae6abf45" | 9 | SRCREV = "37ede4242b48def73ada46c2747a4c5cae6abf45" |
9 | 10 | ||
10 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
11 | 12 | ||
12 | inherit distutils3 | 13 | inherit setuptools3 |
13 | 14 | ||
14 | RDEPENDS:${PN} += "\ | 15 | RDEPENDS:${PN} += "\ |
15 | python3-asyncio \ | 16 | python3-asyncio \ |
@@ -19,4 +20,3 @@ RDEPENDS:${PN} += "\ | |||
19 | " | 20 | " |
20 | 21 | ||
21 | BBCLASSEXTEND = "native nativesdk" | 22 | BBCLASSEXTEND = "native nativesdk" |
22 | |||