I'm trying to install my own Python application from source, and having a
hard time finding resources on how to accomplish it. I'm new to this
ecosystem and am probably missing something fundamental.

My recipe is structured like this...and my build is configure such that it
does actually find it.

├── firmware-1.0
│   ├── saunders_backend
│   └── saunders_frontend
└── firmware_1.0.bb

My application code which is for now just a "hello world" flask
application, is in saunders_backend. The setup.py file in there works as
expected when I use it in on my host machine.

├── firmware-1.0
│   ├── saunders_backend/
│   │   ├── bin/
│   │   │   └── server
│   │   ├── MANIFEST.in
│   │   ├── requirements.txt
│   │   ├── saunders_apollo/
│   │   │   ├── config.py
│   │   │   ├── __init__.py
│   │   │   ├── models.py
│   │   │   ├── static/
│   │   │   ├── templates/
│   │   │   └── views.py
│   │   └── setup.py
│   └── saunders_frontend/
└── firmware_1.0.bb

I've been hacking on the .bb files to get it to install this into the
resulting image. I do have IMAGE_INSTALL_append = " firmware" in the
top-level local.conf.

My primary confusion is that I don't know what I should be using for the
python application. do_install, do_install_append? What should SRC_UIR be?
In effect is that I want the exact same behavior of "cd saunders_backend &&
pip install ." My setup.py file has install_requires with a list of all
dependencies, which now is merely Flask.

Pointers would be appreciated.
BZ
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to