I've got a python app that uses some javascript assets that are normally
built via webpack. In a normal build, the process is as follows:
* run "npm install" to get all the javascript dependencies
* run "npm build", a custom task in my package.json file that invokes
webpack to build the assets and place them where the python install can
find them.
* run "python setup.py install" to build and install the python part of the
app
What's the best/most correct way to integrate this into a yocto recipe? My
current approach is to have the main recipe "inherit setuptools3" and then
add the following:
"
do_run_npm_install() {
bbplain "Running npm install, this may take a few minutes..."
npm install
npm run build
}
addtask run_npm_install before do_compile
"
However, this fails with an "npm: not found" error.
-Paul Wicks
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52654): https://lists.yoctoproject.org/g/yocto/message/52654
Mute This Topic: https://lists.yoctoproject.org/mt/81236699/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-