Skip to contentSkip to conversation

Python3 app install best practice

yocto Mauro Ziliani 1 participant 1 message Jan 29, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi list.

I solved my problem working with distutils parameteres inside myapp.bb recipe

Mauro

Quoted 44 lines · Mauro Ziliani via lists.yoctoproject.org

Hi all

I'd like to install my python3 application in a custom folder with all local packages and data.

The source code folder has this tree

./myapp/__main__.py

./package/__init__.py

./package/pkg.py

I manage the application by myapp_1.0.bb recipe.

I'd like the myapp_1.0.ipk package contains

/home/apps/myapp/__main__.py

/home/apps/package/__init__.py

/home/apps/package/pkg.py

I try setup.py and  inherit setuptools3 in my myapp_git.bb but 'packages' is installed under python system folder.

There is a way to customize the path of python package installation?

MZ

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55983): https://lists.yoctoproject.org/g/yocto/message/55983
Mute This Topic: https://lists.yoctoproject.org/mt/88702098/3617482
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-