What happened to packages __init__.py? #python #dunfell


MikeB
 

I'm working with multiple platforms on dunfell.
 
I'm having trouble understanding the installation step of a couple of pthon3 packages - namely python3-zc-lockfile and python3-jaraco-functools.  In both cases, the install function skips installing an __init__.py file which messes up my package use.
 
From the logs, I see the messages below.
 
Can someone explain why the installation of __init__.py and how I could modify the recipe so these __init__py files are installed?
 
Thanks!.

```
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
running build
running build_py
running egg_info
writing jaraco.functools.egg-info/PKG-INFO
writing dependency_links to jaraco.functools.egg-info/dependency_links.txt
writing namespace_packages to jaraco.functools.egg-info/namespace_packages.txt
writing requirements to jaraco.functools.egg-info/requires.txt
writing top-level names to jaraco.functools.egg-info/top_level.txt
reading manifest file 'jaraco.functools.egg-info/SOURCES.txt'
writing manifest file 'jaraco.functools.egg-info/SOURCES.txt'
running install
running install_lib
copying jaraco/functools.py -> /data/mabnhdev/test-yocto-321/build/test-x86-64/tmp/work/x86_64-poky-linux/python3-jaraco-functools/1.20-r0/image/usr/lib/python3.8/site-packages/jaraco
Skipping installation of /data/mabnhdev/test-yocto-321/build/test-x86-64/tmp/work/x86_64-poky-linux/python3-jaraco-functools/1.20-r0/image/usr/lib/python3.8/site-packages/jaraco/__init__.py (namespace package)
...
```

```
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
running build
running build_py
running egg_info
writing src/zc.lockfile.egg-info/PKG-INFO
writing dependency_links to src/zc.lockfile.egg-info/dependency_links.txt
writing namespace_packages to src/zc.lockfile.egg-info/namespace_packages.txt
writing requirements to src/zc.lockfile.egg-info/requires.txt
writing top-level names to src/zc.lockfile.egg-info/top_level.txt
reading manifest file 'src/zc.lockfile.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'src/zc.lockfile.egg-info/SOURCES.txt'
running install
running install_lib
Skipping installation of /data/mabnhdev/test-yocto-321/build/test-x86-64/tmp/work/x86_64-poky-linux/python3-zc-lockfile/1.3.0-r0/image/usr/lib/python3.8/site-packages/zc/__init__.py (namespace package)
...
```

 

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.