From 091c6b1c40c19d4076376f9dfa0d4994b291a7c6 Mon Sep 17 00:00:00 2001 From: Hang Date: Thu, 9 Mar 2023 11:30:18 +0800 Subject: [PATCH] {Packaging} Use latest setuptools on Linux (#25703) --- requirements.txt | 2 +- scripts/release/debian/build.sh | 2 +- scripts/release/rpm/azure-cli.spec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index d03fca45d9e..fa30ca9ce5e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ # basic -setuptools==65.5.1 +setuptools>=65.5.1 pip>=9.0.1 diff --git a/scripts/release/debian/build.sh b/scripts/release/debian/build.sh index e8e7c4ffebb..0141ee89e07 100755 --- a/scripts/release/debian/build.sh +++ b/scripts/release/debian/build.sh @@ -46,7 +46,7 @@ $PYTHON_SRC_DIR/*/configure --srcdir $PYTHON_SRC_DIR/* --prefix $WORKDIR/python_ make make install -$WORKDIR/python_env/bin/python3 -m pip install --upgrade pip +$WORKDIR/python_env/bin/python3 -m pip install --upgrade pip setuptools export PATH=$PATH:$WORKDIR/python_env/bin diff --git a/scripts/release/rpm/azure-cli.spec b/scripts/release/rpm/azure-cli.spec index b8b87417071..78f0fa03131 100644 --- a/scripts/release/rpm/azure-cli.spec +++ b/scripts/release/rpm/azure-cli.spec @@ -46,7 +46,7 @@ A great cloud needs great tools; we're excited to introduce Azure CLI, # Create a fully instantiated virtual environment, ready to use the CLI. %{python_cmd} -m venv %{buildroot}%{cli_lib_dir} source %{buildroot}%{cli_lib_dir}/bin/activate -%{python_cmd} -m pip install --upgrade pip +%{python_cmd} -m pip install --upgrade pip setuptools source %{repo_path}/scripts/install_full.sh # cffi 1.15.0 doesn't work with RPM: https://foss.heptapod.net/pypy/cffi/-/issues/513