mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
classes/npm: use the native python
When building addons, the node-gyp build tool is looking for python. It is available in the native directory but not directly in the PATH. This commit configures npm to use the native python executable. (From OE-Core rev: 946fd69cba6f60c531ff34091cda3b7fee8ee594) Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemetayer@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ba5d030b62
commit
fc516a65b3
|
@ -236,6 +236,9 @@ python npm_do_compile() {
|
|||
sysroot = d.getVar("RECIPE_SYSROOT_NATIVE")
|
||||
nodedir = os.path.join(sysroot, d.getVar("prefix_native").strip("/"))
|
||||
configs.append(("nodedir", nodedir))
|
||||
bindir = os.path.join(sysroot, d.getVar("bindir_native").strip("/"))
|
||||
pythondir = os.path.join(bindir, "python-native", "python")
|
||||
configs.append(("python", pythondir))
|
||||
|
||||
# Pack and install the main package
|
||||
tarball = npm_pack(env, d.getVar("NPM_PACKAGE"), tmpdir)
|
||||
|
|
Loading…
Reference in New Issue
Block a user