From 02630483284a2f31b01e636210715ee1fb6e63b9 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 19 Jan 2010 10:00:41 +0000 Subject: base.bbclass: add popen/system convenience functions Provides oe_popen, which is a subprocess.Popen wrapper that automatically provides our exported variables in the environment, including the PATH, and oe_system, which is just a wrapper that acts like system. Signed-off-by: Chris Larson Acked-by: Tom Rini --- classes/base.bbclass | 6 ------ 1 file changed, 6 deletions(-) (limited to 'classes/base.bbclass') diff --git a/classes/base.bbclass b/classes/base.bbclass index ae8b74ecd4..182ce62d9a 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -154,12 +154,6 @@ python base_do_fetch() { raise bb.build.FuncFailed("Checksum of '%s' failed" % uri) } -def subprocess_setup(): - import signal - # Python installs a SIGPIPE handler by default. This is usually not what - # non-Python subprocesses expect. - signal.signal(signal.SIGPIPE, signal.SIG_DFL) - def oe_unpack_file(file, data, url = None): import subprocess if not url: -- cgit v1.2.3