Skip to content

Commit 104ea44

Browse files
lucylqfacebook-github-bot
authored andcommitted
min setuptools version (pytorch#3448)
Summary: setuptools below 63 does not have setuptools.command.build ``` Processing /data/users/lfq/torchchat/et-build/src/executorch Running command Preparing metadata (pyproject.toml) setup.py:57: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead from distutils.sysconfig import get_python_lib Traceback (most recent call last): File "/data/users/lfq/torchchat/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/data/users/lfq/torchchat/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/data/users/lfq/torchchat/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File "/data/users/lfq/torchchat/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 161, in prepare_metadata_for_build_wheel self.run_setup() File "/data/users/lfq/torchchat/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 145, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 61, in <module> from setuptools.command.build import build ModuleNotFoundError: No module named 'setuptools.command.build' error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /data/users/lfq/torchchat/.venv/bin/python3.10 /data/users/lfq/torchchat/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl32pxnts cwd: /data/users/lfq/torchchat/et-build/src/executorch Preparing metadata (pyproject.toml) ... error error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ``` Pull Request resolved: pytorch#3448 Reviewed By: mergennachin, dbort Differential Revision: D56839250 Pulled By: lucylq fbshipit-source-id: dac451c1cf609e8e49fd9c5816a52d08824dd9b0
1 parent c4225e3 commit 104ea44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install_requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ EXIR_REQUIREMENTS=(
7575
DEVEL_REQUIREMENTS=(
7676
cmake # For building binary targets.
7777
pyyaml # Imported by the kernel codegen tools.
78-
setuptools # For building the pip package.
78+
"setuptools>=63" # For building the pip package.
7979
tomli # Imported by extract_sources.py when using python < 3.11.
8080
wheel # For building the pip package archive.
8181
zstd # Imported by resolve_buck.py.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"cmake", # For building binary targets in the wheel.
44
"pyyaml", # Imported by the kernel codegen tools.
5-
"setuptools", # For building the pip package contents.
5+
"setuptools>=63", # For building the pip package contents.
66
"tomli", # Imported by extract_sources.py when using python < 3.11.
77
"wheel", # For building the pip package archive.
88
"zstd", # Imported by resolve_buck.py.

0 commit comments

Comments
 (0)