From 39169b98b6570e1e5c35a1291e355010a15888c0 Mon Sep 17 00:00:00 2001 From: lucylq Date: Fri, 10 May 2024 11:24:54 -0700 Subject: [PATCH] min pip version (#3526) Summary: see [T188128067](https://www.internalfb.com/intern/tasks/?t=188128067) and https://github.com/pytorch/torchchat/issues/726 Differential Revision: D57032452 Pulled By: lucylq --- build/packaging/pre_build_script.sh | 1 + install_requirements.sh | 1 + pyproject.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/build/packaging/pre_build_script.sh b/build/packaging/pre_build_script.sh index 1abb1a76fe3..74c98406d05 100644 --- a/build/packaging/pre_build_script.sh +++ b/build/packaging/pre_build_script.sh @@ -16,6 +16,7 @@ set -euxo pipefail readonly BUILD_DEPS=( # This list must match the build-system.requires list from pyproject.toml. "cmake" + "pip>=23" "pyyaml" "setuptools>=63" "tomli" diff --git a/install_requirements.sh b/install_requirements.sh index d88eb505a6c..24a01cae9b6 100755 --- a/install_requirements.sh +++ b/install_requirements.sh @@ -73,6 +73,7 @@ EXIR_REQUIREMENTS=( # pip packages needed for development. DEVEL_REQUIREMENTS=( cmake # For building binary targets. + "pip>=23" # For building the pip package. pyyaml # Imported by the kernel codegen tools. "setuptools>=63" # For building the pip package. tomli # Imported by extract_sources.py when using python < 3.11. diff --git a/pyproject.toml b/pyproject.toml index 099cdd0d32c..b6926a2f5f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [build-system] requires = [ "cmake", # For building binary targets in the wheel. + "pip>=23", # For building the pip package. "pyyaml", # Imported by the kernel codegen tools. "setuptools>=63", # For building the pip package contents. "tomli", # Imported by extract_sources.py when using python < 3.11.