Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 5)
@@ -0,0 +1,56 @@
+
+COMPONENT_TARGETS = $(HARDWARE_BUILD)
+
+include ../../../../../../build-system/constants.mk
+
+SOURCE_REQUIRES = build-system/3pp/sources/packages/python-modules/setuptools
+
+REQUIRES = build-system/3pp/app/python3/3.10.8
+
+# ======= __END_OF_REQUIRES__ =======
+
+version = 65.5.0
+tar_gz_archive = $(BUILDSYSTEM)/3pp/sources/packages/python-modules/setuptools/setuptools-$(version).tar.gz
+SRC_ARCHIVE = $(tar_gz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/setuptools-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source-done
+
+PATCHES = PATCHES
+
+build_target = $(TARGET_BUILD_DIR)/.built
+install_target = $(TARGET_BUILD_DIR)/.installed
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+
+include ../../../../../../build-system/core.mk
+
+#
+# NOTE:
+# ====
+# Command `mkdir -p build/scripts-3.10` and install option --root=/ are needed to avoid
+# Python errors related to build procedure and deprecated easy_install utility.
+#
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @touch $@
+
+$(build_target): $(src_done)
+ @( cd $(SRC_DIR) ; \
+ rm -f setuptools/*.exe ; \
+ mkdir -p build/scripts-3.10 ; \
+ sed -i 's,^tag_build.*,tag_build =,' setup.cfg ; \
+ sed -i 's,^tag_date.*,tag_date = 0,' setup.cfg ; \
+ $(BUILDSYSTEM)/usr/bin/python3 setup.py egg_info ; \
+ )
+ @touch $@
+
+$(install_target): $(build_target)
+ @echo -e "\n======= Installing setuptools-$(version) =======\n"
+ @( cd $(SRC_DIR) ; \
+ $(BUILDSYSTEM)/usr/bin/python3 setup.py install --root=/ ; \
+ )
+ @touch $@