Buildroot and Python version (python 2 vs. python 3)

It seems as though Python is required for buildroot

package/firmware/wireless-regdb/Makefile:	python $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt

Is there a policy around Python 3 vs. Python 2 support?

(I'd prefer to avoid the version-detection and import hacks)

Ubuntu / Debian have moved to Python 3 and are likely to be installing Python 3 exclusively from 18.04 (LTS) onward.
https://wiki.ubuntu.com/Python

All Ubuntu/Canonical driven development should be targeting Python 3 right now, and all new code should be Python 3-only.

CentOS / Redhat still appear to be shipping Python 2

The build system currently expects python 2.

I asked about python3 transition half a year ago on the mailing list, but there was not much feedback.

http://lists.infradead.org/pipermail/lede-dev/2017-October/009438.html

1 Like