diff --git a/setup.py b/setup.py index 7bca113b9f..787a08ab0c 100755 --- a/setup.py +++ b/setup.py @@ -119,6 +119,8 @@ def recursive_data_files(directory, install_directory): "requests-toolbelt", "requests-unixsocket", "requests", + # pin setuptools<66 (CRAFT-1598) + "setuptools<66", "simplejson", "snap-helpers", "tabulate", diff --git a/snapcraft/elf/_elf_file.py b/snapcraft/elf/_elf_file.py index 1d7a2674e5..21b57ce334 100644 --- a/snapcraft/elf/_elf_file.py +++ b/snapcraft/elf/_elf_file.py @@ -324,6 +324,7 @@ def _extract_attributes(self) -> None: # noqa: C901 def is_linker_compatible(self, *, linker_version: str) -> bool: """Determine if the linker will work given the required glibc version.""" version_required = self.get_required_glibc() + # TODO: pkg_resources is deprecated in setuptools>66 (CRAFT-1598) is_compatible = parse_version(version_required) <= parse_version(linker_version) emit.debug( f"Check if linker {linker_version!r} works with GLIBC_{version_required} " @@ -342,6 +343,7 @@ def get_required_glibc(self) -> str: if not version.startswith("GLIBC_"): continue version = version[6:] + # TODO: pkg_resources is deprecated in setuptools>66 (CRAFT-1598) if parse_version(version) > parse_version(version_required): version_required = version