Skip to content

Commit

Permalink
prereq-build: limit python distutils check to <v3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf authored Nov 30, 2024
1 parent 007d406 commit 8c3743a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/prereq-build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \

$(eval $(call TestHostCommand,python3-distutils, \
Please install the Python3 distutils module, \
$(STAGING_DIR_HOST)/bin/python3 -c 'from distutils import util'))
printf 'from sys import version_info\nif version_info < (3, 12):\n\tfrom distutils import util' | \
$(STAGING_DIR_HOST)/bin/python3 -))

$(eval $(call TestHostCommand,python3-stdlib, \
Please install the Python3 stdlib module, \
Expand Down

0 comments on commit 8c3743a

Please sign in to comment.