[OE-core] [PATCH v2 0/2] subprocess: cleanup subprocess calls

Stephano Cetola stephano.cetola at linux.intel.com
Thu Sep 29 22:50:22 UTC 2016


This is the beginning of an effort to move toward a unified way of
using the subprocess module. The end goal is somday create a fork
of the subprocess.run command intro'd in python 3.5.

The biggest hurdle in these efforts is in testing some of the more
obscure code paths that are touched when changing these subprocess
calls. With more time, many of the Popen calls that still exist
could be moved to either check_output or sub.run.

Stephano Cetola (2):
  subprocess: remove strings and migrate to direct arrays
  subprocess: remove Popen in favor of check_output

 meta/classes/buildstats.bbclass |  6 ++++-
 meta/classes/spdx.bbclass       | 11 ++++----
 meta/lib/oe/distro_check.py     |  2 +-
 meta/lib/oe/package.py          | 13 ++++-----
 meta/lib/oe/package_manager.py  | 59 ++++++++++++++++++++---------------------
 5 files changed, 47 insertions(+), 44 deletions(-)

-- 
2.10.0




More information about the Openembedded-core mailing list