Bug 13114

Summary: Split python3-ctypes tests package
Product: [Build System, Metadata & Runtime] OE-Core Reporter: luzik
Component: devtools / tool chainAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 2.7 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description luzik 2019-01-03 09:06:03 UTC
In embedded world image size do matters.

$ cd tmp/work/cortexa7hf-neon-poky-linux-gnueabi/python3/3.5.3-r1.0/packages-split/python3-ctypes/

$ du -hs usr/lib/python3.5/ctypes/*
4,0K	usr/lib/python3.5/ctypes/_endian.py
20K	usr/lib/python3.5/ctypes/__init__.py
100K	usr/lib/python3.5/ctypes/macholib
120K	usr/lib/python3.5/ctypes/__pycache__
1,4M	usr/lib/python3.5/ctypes/test
12K	usr/lib/python3.5/ctypes/util.py
8,0K	usr/lib/python3.5/ctypes/wintypes.py

Please consider extracting python3-ctypes-tests package
Comment 2 Ross Burton 2019-01-03 16:14:53 UTC
Yes, that did fix it in master:

$ oe-pkgdata-util find-path /usr/lib/python3.5/ctypes/test/__init__.py
python3-tests: /usr/lib/python3.5/ctypes/test/__init__.py