diff options
author | Tzu Hsiang Lin <t9360341@ntut.org.tw> | 2018-07-26 00:26:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-26 13:51:02 +0100 |
commit | ccbb13fb661af127a6b2e3cc3d5fc44e84aa7dfe (patch) | |
tree | 791552477b82e076fc71203555070a80fef3463f /bitbake/lib/bb/fetch2/npm.py | |
parent | 13c465663d0d1835773fb30baba345396cf0906e (diff) | |
download | poky-ccbb13fb661af127a6b2e3cc3d5fc44e84aa7dfe.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: 0193e1f5b2128602ad8a80c82a3dd4d2cdb6e4a7)
Signed-off-by: Tzu Hsiang Lin <t9360341@ntut.org.tw>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
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.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index 699ae72e05..7ccaba9873 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
@@ -33,7 +33,6 @@ from bb.fetch2 import runfetchcmd | |||
33 | from bb.fetch2 import logger | 33 | from bb.fetch2 import logger |
34 | from bb.fetch2 import UnpackError | 34 | from bb.fetch2 import UnpackError |
35 | from bb.fetch2 import ParameterError | 35 | from bb.fetch2 import ParameterError |
36 | from distutils import spawn | ||
37 | 36 | ||
38 | def subprocess_setup(): | 37 | def subprocess_setup(): |
39 | # Python installs a SIGPIPE handler by default. This is usually not what | 38 | # Python installs a SIGPIPE handler by default. This is usually not what |