diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml index a4132f6554b..7381c07cb0c 100644 --- a/.github/workflows/build-wheels-linux.yml +++ b/.github/workflows/build-wheels-linux.yml @@ -42,6 +42,7 @@ jobs: post-script: build/packaging/post_build_script.sh smoke-test-script: build/packaging/smoke_test.py package-name: executorch + python-version: '3.10' name: ${{ matrix.repository }} uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main with: @@ -60,3 +61,4 @@ jobs: package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} trigger-event: ${{ github.event_name }} + python-version: ${{ matrix.python-version }} 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.