poky/scripts/contrib
Alejandro Hernandez b6777878ff python3: Restructure python3 packaging and replace it with autopackaging
See previous commit (python2 version) for more info, since mostly
everything applies here as well.

Old manifest file had several issues:
 - Its unorganized and hard to read and understand it for an average
   human being.
 - When a new package needs to be added, the user actually has to modify
   the script that creates the manifest, then call the script to create
   a new manifest, and then submit a patch for both the script and the
   manifest, so its a little convoluted.
 - Git complains every single time a patch is submitted to the manifest,
   since it violates some of its guidelines.
 - It changes or may change with every release of python, its impossible
   to know if the required files for a certain package have changed
   (it could have more or less dependencies), the only way of doing so
   would be to install and test them all one by one on separate individual
   images, and even then we wouldnt know if they require less dependencies,
   we would just know if an extra dependency is required since it would
   complain, lets face it, this isnt feasible.
 - The same thing happens for new packages, if someone wants to add a new
   package, its dependencies need to be checked manually one by one.

Features/Fixes:
 - A new manifest format is used (JSON), easy to read and understand.
   This file is parsed by the python recipe and python packages
   read from here are passed directly to bitbake during parsing time.
 - It provides an automatic manifest creation task (explained on previous
   commit), which automagically checks for every package dependencies and
   adds them to the new manifest, hence we will have on each package
   exactly what that package needs to be run, providing finer granularity.
  - Dependencies are also checked automagically for new packages
   (explained on previous commit).

This patch has the same features as the python2 version but it differs
in the following ways:
 - Python3 handles precompiled bytecode files  (*.pyc) differently.
   for this reason and since we are cross compiling, wildcards couldnt be
   avoided on python3 (See PEP #3147 [1]).
   Both the manifest and the manifest creation script handle this
   differently, the manifest for python3 has an extra field for cached
   files, which is how it lets the user install the cached files or not
   via : INCLUDE_PYCS = "1" on their local.conf.
 - Shared libraries nomenclature also changed on python3, so again, we
   use wildcards to deal with this issue ( See PEP #3149 [2]):
 - Fixes python3 manifest, python3-core should be base and everything
   should depend on it, hence several packages were deleted:
   python3-enum, re, gdbm, subprocess, signal, readline.
 - When building python3-native it adds as symlink to it called
   nativepython3, which is then isued by the create_manifest task.
 - Fixes [YOCTO #11513] while were at it.

References:
[1] https://www.python.org/dev/peps/pep-3147/
[2] https://www.python.org/dev/peps/pep-3149/

(From OE-Core rev: 54ac820b8a639950ccb534dcd9d6eaf8b2b736e0)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-20 22:31:56 +00:00
..
bb-perf bb-perf: plot histograms base on buildstats data 2016-11-30 15:48:05 +00:00
bbvars.py scripts/contrib/bbvars.py: Remove dead code 2017-12-02 11:25:32 +00:00
build-perf-test-wrapper.sh build-perf-test-wrapper.sh: support uploading test reports 2017-05-18 14:01:47 +01:00
build-perf-test.sh build-perf-test: add eSDK installed size to metrics 2016-04-09 23:00:45 +01:00
ddimage ddimage: if 'pv' is installed, use it 2016-05-06 10:31:15 +01:00
devtool-stress.py scripts/contrib: update scripts for changes to internal API 2016-09-03 23:45:52 +01:00
dialog-power-control scripts/contrib/dialog-power-control: add a trivial power prompt script 2014-04-30 21:52:33 +01:00
documentation-audit.sh documentation-audit.sh: Add/fix checks for skipped lines. 2012-12-13 15:18:42 +00:00
graph-tool graph-tool: update to new networkx API, be iterative 2016-08-17 10:35:42 +01:00
list-packageconfig-flags.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
mkefidisk.sh mkefidsk: fix bash/dash shell quoting problem 2017-07-06 14:38:13 +01:00
oe-build-perf-report-email.py oe-build-perf-report-email.py: add images as MIME objects 2017-11-08 22:24:04 +00:00
patchreview.py scripts/contrib/patchreview: add new script 2017-06-29 13:01:38 +01:00
patchtest.sh scripts/contrib/patchtest: run patchtest on local branch 2017-06-23 11:44:12 +01:00
serdevtry scripts/contrib/serdevtry: add script to handle transient serial terminals 2014-04-30 21:52:32 +01:00
test_build_time_worker.sh scripts/contrib: add build time regression test script 2011-07-20 15:27:31 +01:00
test_build_time.sh scripts/contrib: add build time regression test script 2011-07-20 15:27:31 +01:00
uncovered uncovered: list uncovered python modules 2016-08-01 11:47:11 +01:00
verify-homepage.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00