Skip to content

Commit

Permalink
prereq-build: require python3-distutils
Browse files Browse the repository at this point in the history
Debian and Ubuntu ship a python3-minimal package which does not include
the distutils module. This is not supported by upstream and can be
considered a broken python distribution.

In practice, many scripts depend on said module, and this is a reoccuring
pain point for building various OpenWrt packages.

Require and check for said module, enough time has been wasted on this.

A list of just the most recent issues:
openwrt/packages#16304
openwrt/packages#16027
openwrt/packages#15443
openwrt/packages#14394
openwrt/packages#12909
openwrt/packages#12443
openwrt/packages#11035
openwrt/packages#10993

Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
  • Loading branch information
dhewg authored and Boos4721 committed Aug 22, 2021
1 parent 6e25abd commit 751b153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/prereq-build.mk
Expand Up @@ -170,6 +170,10 @@ $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
python3.6 -V 2>&1 | grep 'Python 3', \
python3 -V 2>&1 | grep -E 'Python 3\.[6-9]\.?'))

$(eval $(call TestHostCommand,python3-distutils, \
Please install the Python3 distutils module, \
$(STAGING_DIR_HOST)/bin/python3 -c 'import distutils'))

$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \
git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule))

Expand Down

0 comments on commit 751b153

Please sign in to comment.