Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 1f7f1be

Browse files
authored
Merge pull request #92 from ipuustin/python3
Reduce Python 3 dependencies
2 parents 1f7c943 + 8e76c4e commit 1f7f1be

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

meta-refkit/conf/distro/refkit.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ PACKAGECONFIG_remove_pn-gstreamer1.0-plugins-base = "pango"
7171

7272
PACKAGECONFIG_remove_pn-pulseaudio = "avahi"
7373

74+
# leave out readline, gdbm, and db
75+
PACKAGECONFIG_pn-python3 = ""
76+
7477
# since we have OpenCL support, turn it on
7578
PACKAGECONFIG_append_pn-opencv = " opencl"
7679
PREFERRED_PROVIDER_virtual/opencl-headers = "opencl-headers"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DEPENDS_remove = "readline gdbm db"
2+
3+
PACKAGECONFIG ??= "readline gdbm db"
4+
PACKAGECONFIG[readline] = ",,readline"
5+
PACKAGECONFIG[gdbm] = ",,gdbm"
6+
PACKAGECONFIG[db] = ",,db"
7+
8+
RRECOMMENDS_${PN}-core = "${@bb.utils.contains('PACKAGECONFIG', 'readline', '${PN}-readline', '', d)}"
9+
10+
# if readline is not there, don't create python3-readline package
11+
PACKAGES_remove += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', '${PN}-readline', d)}"
12+
PROVIDES_remove += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', '${PN}-readline', d)}"
13+
RDEPENDS_${PN}-modules_remove += "${@bb.utils.contains('PACKAGECONFIG', 'readline', '', '${PN}-readline', d)}"

0 commit comments

Comments
 (0)