python3-setuptools_76.0.0.bb 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. SUMMARY = "Download, build, install, upgrade, and uninstall Python packages"
  2. HOMEPAGE = "https://pypi.org/project/setuptools"
  3. SECTION = "devel/python"
  4. LICENSE = "MIT"
  5. LIC_FILES_CHKSUM = "file://LICENSE;md5=141643e11c48898150daa83802dbc65f"
  6. inherit pypi python_setuptools_build_meta
  7. CVE_PRODUCT = "python3-setuptools python:setuptools"
  8. SRC_URI:append:class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
  9. SRC_URI += " \
  10. file://0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch \
  11. file://CVE-2025-47273-pre1.patch \
  12. file://CVE-2025-47273.patch \
  13. file://0001-Revert-Merge-pull-request-pypa-distutils-332-from-py.patch \
  14. file://0002-Remove-support-for-special-executable-under-a-Python.patch \
  15. "
  16. SRC_URI[sha256sum] = "43b4ee60e10b0d0ee98ad11918e114c70701bc6051662a9a675a0496c1a158f4"
  17. DEPENDS += "python3"
  18. RDEPENDS:${PN} = "\
  19. python3-compile \
  20. python3-compression \
  21. python3-ctypes \
  22. python3-email \
  23. python3-html \
  24. python3-json \
  25. python3-netserver \
  26. python3-numbers \
  27. python3-pickle \
  28. python3-pkg-resources \
  29. python3-pkgutil \
  30. python3-plistlib \
  31. python3-shell \
  32. python3-stringold \
  33. python3-threading \
  34. python3-unittest \
  35. python3-unixadmin \
  36. python3-xml \
  37. "
  38. BBCLASSEXTEND = "native nativesdk"
  39. # The pkg-resources module can be used by itself, without the package downloader
  40. # and easy_install. Ship it in a separate package so that it can be used by
  41. # minimal distributions.
  42. PACKAGES =+ "python3-pkg-resources "
  43. FILES:python3-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*"
  44. RDEPENDS:python3-pkg-resources = "\
  45. python3-compression \
  46. python3-email \
  47. python3-plistlib \
  48. python3-pprint \
  49. "
  50. # This used to use the bootstrap install which didn't compile. Until we bump the
  51. # tmpdir version we can't compile the native otherwise the sysroot unpack fails
  52. INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode"