python-packages: Replace --global-option with --build-option
authorJeffery To <jeffery.to@gmail.com>
Sat, 27 May 2023 11:43:57 +0000 (19:43 +0800)
committerRosen Penev <rosenp@gmail.com>
Sun, 28 May 2023 12:47:24 +0000 (15:47 +0300)
setuptools 64.0.0 deprecated the use of --global-option to pass build
parameters[1]. This replaces the use of --global-option with
--build-option.

[1]: https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b76fa19b26027f8472617598c19b9e071eef81bb)

lang/python/pillow/Makefile
lang/python/python-evdev/Makefile

index 941f28f4e3b9e9559e5d362ab5cdc98e965922a9..753ceec25a55fc73451a3b872b1778b449ad6640 100644 (file)
@@ -37,17 +37,17 @@ define Package/python3-pillow/description
 endef
 
 PYTHON3_PKG_BUILD_CONFIG_SETTINGS += \
-       --global-option=build_ext \
-       --global-option=--enable-zlib \
-       --global-option=--enable-jpeg \
-       --global-option=--enable-webp \
-       --global-option=--enable-webpmux \
-       --global-option=--enable-tiff \
-       --global-option=--enable-freetype \
-       --global-option=--disable-lcms \
-       --global-option=--disable-jpeg2000 \
-       --global-option=--disable-imagequant \
-       --global-option=--disable-platform-guessing
+       --build-option=build_ext \
+       --build-option=--enable-zlib \
+       --build-option=--enable-jpeg \
+       --build-option=--enable-webp \
+       --build-option=--enable-webpmux \
+       --build-option=--enable-tiff \
+       --build-option=--enable-freetype \
+       --build-option=--disable-lcms \
+       --build-option=--disable-jpeg2000 \
+       --build-option=--disable-imagequant \
+       --build-option=--disable-platform-guessing
 
 $(eval $(call Py3Package,python3-pillow))
 $(eval $(call BuildPackage,python3-pillow))
index bab726b54ec4e81fa6a38653846c2a59eecf5dfa..4623adae7df1a38bb53aa833639e39d22b0e6a8c 100644 (file)
@@ -40,10 +40,10 @@ endef
 LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
 
 PYTHON3_PKG_BUILD_CONFIG_SETTINGS:= \
-       --global-option=build \
-       --global-option=build_ecodes \
-       --global-option=--evdev-headers="$(LINUX_EVDEV_HEADERS)" \
-       --global-option=build_ext
+       --build-option=build \
+       --build-option=build_ecodes \
+       --build-option=--evdev-headers="$(LINUX_EVDEV_HEADERS)" \
+       --build-option=build_ext
 
 $(eval $(call Py3Package,python3-evdev))
 $(eval $(call BuildPackage,python3-evdev))