docs/manual: drop python2 references
Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
71d5d8c108
commit
da9f2a8fda
@ -67,14 +67,6 @@ Python build system, but are not Python modules, can freely choose
|
||||
their name (existing examples in Buildroot are +scons+ and
|
||||
+supervisor+).
|
||||
|
||||
Packages that are only compatible with one version of Python (as in:
|
||||
Python 2 or Python 3) should depend on that version explicitely in
|
||||
their +Config.in+ file (+BR2_PACKAGE_PYTHON+ for Python 2,
|
||||
+BR2_PACKAGE_PYTHON3+ for Python 3). Packages that are compatible
|
||||
with both versions should not explicitely depend on them in their
|
||||
+Config.in+ file, since that condition is already expressed for the
|
||||
whole "External python modules" menu.
|
||||
|
||||
The main macro of the Python package infrastructure is
|
||||
+python-package+. It is similar to the +generic-package+ macro. It is
|
||||
also possible to create Python host packages with the
|
||||
|
@ -93,9 +93,9 @@ so _make_ recognizes them as commands.
|
||||
YES:
|
||||
+
|
||||
---------------------
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
LIBFOO_CONF_OPTS += --with-python-support
|
||||
LIBFOO_DEPENDENCIES += python
|
||||
LIBFOO_DEPENDENCIES += python3
|
||||
else
|
||||
LIBFOO_CONF_OPTS += --without-python-support
|
||||
endif
|
||||
@ -104,8 +104,8 @@ endif
|
||||
NO:
|
||||
+
|
||||
---------------------
|
||||
LIBFOO_CONF_OPTS += --with$(if $(BR2_PACKAGE_PYTHON),,out)-python-support
|
||||
LIBFOO_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,)
|
||||
LIBFOO_CONF_OPTS += --with$(if $(BR2_PACKAGE_PYTHON3),,out)-python-support
|
||||
LIBFOO_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON3),python3,)
|
||||
---------------------
|
||||
|
||||
** Keep configure options and dependencies close together.
|
||||
|
Loading…
Reference in New Issue
Block a user