Skip to content

[build] pin setuptools>=77 to enable PEP 639 #158104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 38 commits into
base: gh/XuehaiPan/365/base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
XuehaiPan committed Jul 11, 2025
commit e51f1b83ffc582f9a1a2bebcb51e66ec67cf7e8c
2 changes: 1 addition & 1 deletion .ci/docker/manywheel/Dockerfile_2_28
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ENV PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/bin:$PATH
ENV LD_LIBRARY_PATH=/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib64:/opt/rh/gcc-toolset-${DEVTOOLSET_VERSION}/root/usr/lib:$LD_LIBRARY_PATH
# Install setuptools and wheel for python 3.12/3.13
RUN for cpython_version in "cp312-cp312" "cp313-cp313" "cp313-cp313t"; do \
/opt/python/${cpython_version}/bin/python -m pip install "setuptools>=77.0.0" wheel; \
/opt/python/${cpython_version}/bin/python -m pip install "setuptools>=77.0.0" "packaging>=24.2" wheel; \
done;


Expand Down
1 change: 1 addition & 0 deletions .ci/docker/requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ pwlf==2.2.1


# To build PyTorch itself
packaging>=24.2
pyyaml
pyzstd
setuptools>=77.0.0
Expand Down
3 changes: 2 additions & 1 deletion .ci/pytorch/windows/setup_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ if "%DESIRED_PYTHON%" == "3.11" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
if "%DESIRED_PYTHON%" == "3.10" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
if "%DESIRED_PYTHON%" == "3.9" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake

%PYTHON_EXEC% -m pip install "setuptools>=77.0.0" "packaging>=24.2"
%PYTHON_EXEC% -m pip install pyyaml
%PYTHON_EXEC% -m pip install mkl-include mkl-static
%PYTHON_EXEC% -m pip install boto3 ninja typing-extensions "setuptools>=77.0.0"
%PYTHON_EXEC% -m pip install boto3 ninja typing-extensions

where cmake.exe

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires = [
"cmake>=3.27",
"ninja",
"numpy",
"packaging",
"packaging>=24.2",
"pyyaml",
"requests",
"six", # dependency chain: NNPACK -> PeachPy -> six
Expand Down
2 changes: 1 addition & 1 deletion requirements-build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ setuptools>=77.0.0
cmake>=3.27
ninja
numpy
packaging
packaging>=24.2
pyyaml
requests
six # dependency chain: NNPACK -> PeachPy -> six
Expand Down
Loading