Browse Source

python3: hide -src package until main pkg selected

This adds a 'Package/<pkg>-src/config' definition with a 'depends on
<pkg>' line, which will hide <pkg>-src unless <pkg> is selected.  This
makes the long list of python packages a bit shorter, and also indents
the src package:

<M> python3-base................................ Python 3.8 interpreter
< >   python3-base-src................. Python 3.8 interpreter (sources)

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
lilik-openwrt-22.03
Eneas U de Queiroz 5 years ago
parent
commit
3d28b776bc
No known key found for this signature in database GPG Key ID: 1EB043ABD7ACF202
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lang/python/python3-package.mk

+ 4
- 0
lang/python/python3-package.mk View File

@ -56,6 +56,10 @@ define Py3Package
(Contains the Python3 sources for this package).
endef
define Package/$(1)-src/config
depends on PACKAGE_$(1)
endef
# Add default PyPackage filespec none defined
ifndef Py3Package/$(1)/filespec
define Py3Package/$(1)/filespec


Loading…
Cancel
Save