diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /scripts/lib/recipetool/create_buildsys_python.py | |
parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
download | poky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz |
Convert to new override syntax
This is the result of automated script conversion:
scripts/contrib/convert-overrides.py <oe-core directory>
converting the metadata to use ":" as the override character instead of "_".
(From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
-rw-r--r-- | scripts/lib/recipetool/create_buildsys_python.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index adfa377956..fdd3366038 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py | |||
@@ -45,9 +45,9 @@ class PythonRecipeHandler(RecipeHandler): | |||
45 | 'Summary': 'SUMMARY', | 45 | 'Summary': 'SUMMARY', |
46 | 'Description': 'DESCRIPTION', | 46 | 'Description': 'DESCRIPTION', |
47 | 'License': 'LICENSE', | 47 | 'License': 'LICENSE', |
48 | 'Requires': 'RDEPENDS_${PN}', | 48 | 'Requires': 'RDEPENDS:${PN}', |
49 | 'Provides': 'RPROVIDES_${PN}', | 49 | 'Provides': 'RPROVIDES:${PN}', |
50 | 'Obsoletes': 'RREPLACES_${PN}', | 50 | 'Obsoletes': 'RREPLACES:${PN}', |
51 | } | 51 | } |
52 | # PN/PV are already set by recipetool core & desc can be extremely long | 52 | # PN/PV are already set by recipetool core & desc can be extremely long |
53 | excluded_fields = [ | 53 | excluded_fields = [ |
@@ -301,7 +301,7 @@ class PythonRecipeHandler(RecipeHandler): | |||
301 | inst_req_deps = ('python3-' + r.replace('.', '-').lower() for r in sorted(inst_reqs)) | 301 | inst_req_deps = ('python3-' + r.replace('.', '-').lower() for r in sorted(inst_reqs)) |
302 | lines_after.append('# WARNING: the following rdepends are from setuptools install_requires. These') | 302 | lines_after.append('# WARNING: the following rdepends are from setuptools install_requires. These') |
303 | lines_after.append('# upstream names may not correspond exactly to bitbake package names.') | 303 | lines_after.append('# upstream names may not correspond exactly to bitbake package names.') |
304 | lines_after.append('RDEPENDS_${{PN}} += "{}"'.format(' '.join(inst_req_deps))) | 304 | lines_after.append('RDEPENDS:${{PN}} += "{}"'.format(' '.join(inst_req_deps))) |
305 | 305 | ||
306 | if mapped_deps: | 306 | if mapped_deps: |
307 | name = info.get('Name') | 307 | name = info.get('Name') |
@@ -313,7 +313,7 @@ class PythonRecipeHandler(RecipeHandler): | |||
313 | lines_after.append('') | 313 | lines_after.append('') |
314 | lines_after.append('# WARNING: the following rdepends are determined through basic analysis of the') | 314 | lines_after.append('# WARNING: the following rdepends are determined through basic analysis of the') |
315 | lines_after.append('# python sources, and might not be 100% accurate.') | 315 | lines_after.append('# python sources, and might not be 100% accurate.') |
316 | lines_after.append('RDEPENDS_${{PN}} += "{}"'.format(' '.join(sorted(mapped_deps)))) | 316 | lines_after.append('RDEPENDS:${{PN}} += "{}"'.format(' '.join(sorted(mapped_deps)))) |
317 | 317 | ||
318 | unmapped_deps -= set(extensions) | 318 | unmapped_deps -= set(extensions) |
319 | unmapped_deps -= set(self.assume_provided) | 319 | unmapped_deps -= set(self.assume_provided) |