summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/npm.py
diff options
context:
space:
mode:
authorTzu Hsiang Lin <t9360341@ntut.org.tw>2018-05-22 01:56:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 11:43:52 +0100
commitd53a5f1e8bc22881c22cc96384b8c5db93452f64 (patch)
tree5d833f21869e17cf349b4372619238d27f93aeb8 /bitbake/lib/bb/fetch2/npm.py
parentc1e3ae9039143f086e4cc1cf28dc6a8b5ed25816 (diff)
downloadpoky-d53a5f1e8bc22881c22cc96384b8c5db93452f64.tar.gz
bitbake: fetch2: fix import error for Python 3.6.5
When running bitbake command with Python 3.6.5 always result in import error causing by the change of distutils module. This patch replaces the method to search executable in PATH by "/usr/bin/env <command>". (Bitbake rev: eb3bdcc9e7cb273de4114367887d1d7df9f036b7) Signed-off-by: Tzu Hsiang Lin <t9360341@ntut.org.tw> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/npm.py')
-rw-r--r--bitbake/lib/bb/fetch2/npm.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index 730c346a93..408dfc3d03 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -32,7 +32,6 @@ from bb.fetch2 import runfetchcmd
32from bb.fetch2 import logger 32from bb.fetch2 import logger
33from bb.fetch2 import UnpackError 33from bb.fetch2 import UnpackError
34from bb.fetch2 import ParameterError 34from bb.fetch2 import ParameterError
35from distutils import spawn
36 35
37def subprocess_setup(): 36def subprocess_setup():
38 # Python installs a SIGPIPE handler by default. This is usually not what 37 # Python installs a SIGPIPE handler by default. This is usually not what