min setuptools version (#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: https://github.com/pytorch/executorch/pull/3448
Reviewed By: mergennachin, dbort
Differential Revision: D56839250
Pulled By: lucylq
fbshipit-source-id: dac451c1cf609e8e49fd9c5816a52d08824dd9b0 L
lucylq committed
104ea44ba953b802d000df1ae7b8a84cc23ef805
Parent: c4225e3
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 5/1/2024, 8:39:34 PM