From 84653205875083d89e718d44e44f2dbe449c0f2f Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 6 Aug 2024 18:16:17 -0700 Subject: [PATCH] Update default packages (#42) * Upgrade pip from 24.0 to 24.2 * Remove setuptools * Remove wheel * Install pip without setuptools and wheel --- files/installer.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/files/installer.py b/files/installer.py index 67d22d0..58b6623 100644 --- a/files/installer.py +++ b/files/installer.py @@ -54,9 +54,7 @@ class Pip: ) _DEFAULT_PACKAGES = dict( - pip='24.0', - setuptools='70.0.0', - wheel='0.43.0', + pip='24.2', ) _PACKAGES: dict[str, dict[str, str]] = { @@ -89,8 +87,14 @@ def setup(self): packages = [f'{name}=={version}' for name, version in self.packages.items()] + setup_options = [ + '--break-system-packages', + '--no-setuptools', + '--no-wheel', + ] + with self._install_options_context() as options: - subprocess.run(self._pip_command + options + list(self._OPTIONS) + ['--break-system-packages'] + packages, check=True, env=env) + subprocess.run(self._pip_command + options + list(self._OPTIONS) + setup_options + packages, check=True, env=env) def show_version(self) -> None: """Show the pip version."""